Redux toolkit
Description
what is it ? : React library used to handle global state management.
URL : official website (opens in a new tab)
Why ?:
- It makes global state management lot more easier
- It's better than using react hook's useContext because it's simpler, more effective, optimized
Application
- Create a src/store/store.ts
- Create a file in src/lib/hooks.ts
- Create a src/store/StoreProvider.ts
- In layout.tsx