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
FOR A .module.css FILE ALL THE STYLES DEFINED LIKE .nav WOULD BE GIVEN A RANDOM ID WHICH IS ATTACED WITH THEM IN BROWSER CHECKING THEM TO BE USED ELSEWERE NOT IMPOTED FOR THIS REMEDY IS
using a syntax like :
css
.nav :global(.active) {
background-color : green ;
}
FOR APPLYING CERTAIN STYLES NECESSARY