Component
↔ 🧱Composable code to Encapsulate, Reuse & return React Element Fiber
via JSX
Source: Components and Props – React
FC
​
function to return UI via JSX. Pass props
for dynamic input. add state via Hook
CC
​
React class
Instance extends
React.Component
, provides render() Method to return UI, manage state & perform side effects on Lifecycle Methods
props
​
frozen Object of properties; passed as dynamic input from Parent Component to children
state
​
persistent Snapshot of infothat App can access at given point in time
Server Component vs Client Component
​
how to decide when to use client or server components?
Client Component
​
FC to render on Client dynamically
Server Component
​
FC to Server Side Render on Backend & serve Static Content to Thin Client
(new) Render Cycle with [<span data-tooltip-id="preview__HfrPqviLa32xMJJxp">Fiber</span>](fiber)
References​
Composable
↔ (property) of Component (or any general entity) being self-contained, nestable & portable, easily composed into Composite ComponentsComposite Component
↔ Component contains another ComponentChild Component
↔ Component nest within ComponentParent Component
↔ Composite Component wrap other ComponentComponent Hierarchy
↔ tree-like relationship of Component to structure data flowComponent Relationship
↔ A direct parent-child relationship of Component with unidirectional data-flowComponent State
↔ mechanism for storing values inside Component over time/src/components/App.js
↔ root JS file to define App FC to import other Components/src/index.js
↔ root .js file as starting point app, imports & renders App Component to/public/index.html
this.props
↔ frozen object for accessing properties inside a Componentcomposability
↔ code reuse & composability well-supported in both Component typesPure Component
↔ stateless Component that always renders same based on sameprops
input.UI state
↔ current state of UI Component; intermittent data to help render app that's not persistedEffect Hook
↔ (typeof) Hook to run Effect inside Component at different stages of Component LifecycleuseMemo()
↔ Memoizing Hook to Memoize entire Component, some JSX orprops
, based on Deps Array changeInitial State
↔ value of Variable/property on first run of ComponentUncontrolled Component
↔ Component with state manage by DOM API NOTReactDOM
Controlled Component
↔ Component with state manage byReactDOM
Updater Function
↔ function call by Component to update state value/public/index.html
↔ root HTML Web Page to serve App Component, entry point for BrowserComponent Based Architecture
↔ (Paradigm) to visualize UI as Component to architect (DOS (Design Organize Structure )) Apps