React advance concepts

Especially important in interviews

Topics to cover

0. What is state, What is a re-render

1. Hooks (useState, useEffect)

2. useCallback and useMemo, React.memo

3. useRef

4. Error boundaries

5. Custom hooks

1. Hooks

1. Should start with use (useState, useEffect)
2. Used inside components

3. Control the `state` of the React component/components

4. Cause re-renders 

useState

useEffect

2. useEffect 

Slightly advanced hooks

useMemo

 

useCallback

React advance concepts

By harkirat singh

React advance concepts

  • 49