AdvanceduseContext hook useRef hook useReducer hook Memo useCallback hook Custom Hooks React and Redux
MiscellaneousReact Third Party Components Html templates in React React Interview QnA
Hooks in reactHooks are used in a function based components to implement the life cycle methods in class based components.
- useState Hook - used to maintain state of component
- useEffect Hook - used to implement side effects functionality
- useRef Hook - used to access DOM elements in react way
- useContext Hook - This hook prevents prop drilling
- useReducer Hook - It is an alternative way to manage state in react
- useCallback Hook - used to prevent unnecessary creation of callbacks
- useMemo Hook - used to prevent unnecessary render of a component and helps in performance improvement.
Complex problems, Simple Solutions