Why Hooks?
Use features of React Library by calling a hook function.
According to React,
You can now extract stateful logic from a component so it can be tested independently and reused.
Hooks allow you to reuse stateful logic without changing your component hierarchy.
Use features of React Library by calling a hook function.
According to React,
You can now extract stateful logic from a component so it can be tested independently and reused.
Hooks allow you to reuse stateful logic without changing your component hierarchy.
Some of the Inbuilt Hooks in React are
• Basic Hooks
• useState
• useEffect
• useContext
• useRef
• useReducer
• useCallback
• useMemo
• useImperativeHandle
• useLayoutEffect
• useDebugValue
• useTransition
• Basic Hooks
• useState
• useEffect
• useContext
• useRef
• useReducer
• useCallback
• useMemo
• useImperativeHandle
• useLayoutEffect
• useDebugValue
• useTransition
3) useContext Hook
It allows you to access the current value from the context provider.
Think of it as a way to access the global state
It allows you to access the current value from the context provider.
Think of it as a way to access the global state
That's it, There are more which I will cover sooner or later
So did you like this post?
If you want more content on
➮ Web dev
➮Javascript / Reactjs
➮ Developer Journey
➮ ThreeJS
Check out my profile @adarsh____gupta and hit that "Follow"
So did you like this post?
If you want more content on
➮ Web dev
➮Javascript / Reactjs
➮ Developer Journey
➮ ThreeJS
Check out my profile @adarsh____gupta and hit that "Follow"
Loading suggestions...