function
↔ callable Block of code to perform action or return Value
aka fn, func
Currier Function
function to pass/return another Callback Fn
Anon Function
function
w/o Identifier
function definition
Binding for a function to define signature
References
Higher-Order Function
↔ fn to receive Callback arg, to return fn, or bothCallback Function
↔ function to call later (ie pass into Higher-Order Function)Function Signature
↔ Type Annotation to define function I/OParameter
↔ Variable pass into function to define Function Signature, imports Arguments & act as local variablefunction
↔ JS Keyword to Declare function (with optional Argument Parameters)Method
↔ function attach as Object property to define behaviourfunction definition
↔ Binding for a function to define signature.toString()
↔ to returnstring
of Source Code of calling function@constructor
↔ JSDoc tag to mark function as Constructor FunctionClosure
↔ Internal Property of function to preserve access to VE of EC at its creationFactory Function
↔ function to return Object (w/othis
keyword &new
)Constructor Function
↔ function to programmatically create Object (& link via__proto__
after Instantiation withnew
)FC
↔ function to return UI via JSX. Passprops
for dynamic input. add state via HookChain
↔ (JS Syntax) to group functions into single line via Dot Notationthrow
↔ JS Keyword Statement to stop executing current function with user-defined Exception--strictFunctionTypes
↔ to flag TSC to enforce stronger checks for function TypesArgs Object
↔ Object to contain all args pass into function (for current EC)_
this_ keyword
↔ Special variable which 👉to "owner" of calling functionJS Operator
↔ reserved JS Syntax to perform built-in function on Operandsreturn
↔ JS Keyword to specify a single Variable/Expression output from functionsetInterval()
↔ to call function or evaluate Expression, repeatedly at specific intervalssetTimeout()
↔ to execute function (or Expression), once after timer expiresGlobal Function
↔ function declare in Global ScopeRecursion
↔ function to call itself from its implementation body.call()
↔Function
Instance Method to invoke function with explicitthis
keyword [and optional Argument]Simplicity
↔ function are simpler to compose thanclass
which applies more AbstractionStub
↔ line of code (for function), indexed by __line number & VariableTypeCleanup Function
↔ function call on Unmount, via return function fromuseEffect()
Memo()
↔ React function fromuseMemo()
API for Memoization of any function !snippet for addition
<code>import</code> {memo}
const add = (a, b) => a + b;
const memAdd = memo(add)
First-Class Functions
↔ of function equiv to regular VariablesTyped Callback Function
↔ Type Annotation for Anon Function pass as arg to function"strictFunctionTypes": true
↔ to set stricter checks for functions"noUnusedParameters": true
↔ to warn/throw when function Parameter unused (inside function)"noImplicitReturns": true
↔ tothrow
when any function branch missing explicit return (when at least one branch has explicit return; else it's okay to omit)async
↔ JS Keyword to prepend function to allow Asynchronous Codeexpress.static()
↔ Express function to invoke new instance of static file serverReducer
↔ function to Reduce to new state value from Action inputLazy Initial value
↔ function pass as Parameter intouseState()
, to assignreturn
value as Initial State value, on first-call onlyInitialization Function
↔ function pass as Init Arg touseReducer()
to generate Initial State for ReducerUpdater Function
↔ function call by Component to update state valueSetter
↔ function to set a value, prepend class Method withset
JS Keyword. Called as property literal reassignmentGetter
↔ function to get a value, called as property literal; prepend Method withget
JS KeywordLazy()
↔ React API function to Lazy Load FC for Suspense Boundaryhydrate()
↔ replace byhydrateRoot()
ReactDOM API
function to Hydrate container render byReactDOMServer
render()
↔ replace bycreateRoot()
.ReactDOM API
function to renderelement
to DOM API insidecontainer
- for Client Component onlyrenderToStaticMarkup()
↔ReactDOMServer
function to SSG as raw HTMLrenderToString()
↔ReactDOMServer
function to renderelement
to HTML string, for initial page load || SEOCurrier Function
↔ function to pass/return another Callback FncreateContext()
↔Context API
fn to createContext
ObjectRoot Reducer
↔redux
fn to compute new state from old state & Action datacreateStore()
↔ OLD Redux API fn to create new Store InstanceTag Template Function
↔ JS Syntax for function to parse Template LiteralEffect
↔ Callback to run inside function, under certain conditionsDispatch Function
↔ fn to Dispatch Action to ReducercreatePortal()
↔ReactDOM API
Escape Hatch fn to renderchild
Element to anycontainer
Element other than parentEvent Listener
↔ function to awaitEvent
& on Signal Trigger, call Event HandlerMicrotask
↔ Callback to defer fn after parent EC popped off Call Stack