Andrew's Digital Garden
Topic - react
Related:
[[reactapi]]
[[reacthooks]]
[[reactsuspense]]
#topic-page
Referred in
Nested components in React
Object props vs compound components
React Hooks pattern
Derive state, don't sync it
Multiple boolean props in a React component
Control props
Slots in components
`dispatch` and `setState` has a stable function identity
Render Props pattern
Separating view from non-view in React
Prop getters
Before reaching for React useMemo
Server Side Rendering React
Topic - components
useState function
Responsive props
Statements vs Declarations
`React.ComponentType<T>` accepts generics
Digital Garden
Creating a safe dispatch function
Ideas
Concurrent rendering in React
Lifting state up
Why Twitter uses so many divs
What to name the component props interface in React?
Render as you fetch in React
Conditional render props
Updating React context with a component's children
Transitions in React
Async useEffect function
useEffect's cleanup function
Radix's asChild prop, and other styling APIs
Don't pre-optimise useMemo or useCallback
Imperative vs declarative React
Passing a React Element vs Component as a prop
useEffect
Using objects as a dep in useEffect
Rendering phases in React
useImperativeHandle
useEffect vs useLayoutEffect
Headless UI components
The State Reducer Pattern using React hooks
useRef is essentially useState
Data Fetching in React
Don't default a boolean prop to true
What is Isomorphic?
Selective Hydration
Automatic Batching in React
`ReactNode` vs `ComponentType`
React Suspense rendering loop
Sometimes you don't need useEffect
Looping n times in JS/React
Why react re-renders
Compound components in React
Refs with useCallback
When creating new components, break them
useReducer vs useState
Latest ref pattern in React
React portals
Reconciliation in React
Why you should write custom hooks
CSS variables for theming
React Server Components
Custom consumer hook for useContext
Components should have a single responsibility
`useId` hook
Topic - react