Create a new project by cloning this repo.
src/componentscontains all the componentssrc/contextcontains all the context providerssrc/fontscontains font filessrc/rescontains image filessrc/mockscontains mock data for testingsrc/pagescontains all the pages for routingsrc/stylescontains global stylessrc/typescontains type definitionssrc/utilscontains utility functionssrc/index.tsxis the entry point for the appsrc/index.htmlis the HTML template for the app
Jest ignores assets and CSS files, hence to validate if correct assets and CSS are being imported, you will need to customize jest with your own loaders/presets.
@/resolves tosrc/@public/resolves topublic/(untested)
MyComponent/MyComponent.module.cssis the component's stylesMyComponent.test.tsxis the test fileindex.tsxexports the component
- Cannot use utility classes in
classNameprop of React components - Can use utility classes via
@applyin CSS files
npm install
npm start
npm install
npm run test
You may build the app and serve it statically in say a python server
npm install
npm run build
python -m http.server --bind 127.0.0.1 -d dist 8080
You may build the app and serve it statically in say a python server
npm install
npm run dev
python -m http.server --bind 127.0.0.1 -d dist 8080