Implementing React Context API using both class and functional components to show use of context provider, context consumer, ContextType, useContext with easy example.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh