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 returnstringof 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/othiskeyword &new)Constructor Function↔ function to programmatically create Object (& link via__proto__after Instantiation withnew)FC↔ function to return UI via JSX. Passpropsfor 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()↔FunctionInstance Method to invoke function with explicitthiskeyword [and optional Argument]Simplicity↔ function are simpler to compose thanclasswhich 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↔ tothrowwhen 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 assignreturnvalue 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 withsetJS Keyword. Called as property literal reassignmentGetter↔ function to get a value, called as property literal; prepend Method withgetJS KeywordLazy()↔ React API function to Lazy Load FC for Suspense Boundaryhydrate()↔ replace byhydrateRoot()ReactDOM APIfunction to Hydrate container render byReactDOMServerrender()↔ replace bycreateRoot().ReactDOM APIfunction to renderelementto DOM API insidecontainer- for Client Component onlyrenderToStaticMarkup()↔ReactDOMServerfunction to SSG as raw HTMLrenderToString()↔ReactDOMServerfunction to renderelementto HTML string, for initial page load || SEOCurrier Function↔ function to pass/return another Callback FncreateContext()↔Context APIfn to createContextObjectRoot Reducer↔reduxfn 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 APIEscape Hatch fn to renderchildElement to anycontainerElement other than parentEvent Listener↔ function to awaitEvent& on Signal Trigger, call Event HandlerMicrotask↔ Callback to defer fn after parent EC popped off Call Stack