This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
React hooks concepts, useContext and useReducers useContext - providers and consumers , providers have the global state pass to the child components to use with the consumer but differs in class and functional use
useReducers - reducer function and state , reducer function state and action