#Start the project
#start react
#Parcel -Dev Build -local Server -HMR = Hot Module Replacement
- file watching Algorithms - written in c++ -caching - faster Builds -image optimization -minification -bundling -compress -consistance hashing -code splitting -Error handling -different bundling - supports old browser -Diagonostics -tree shaking - Parcel can removed unused code -different dev and prod bundles
//structure of code /*
Header logo nav item Body search restaurantContainer restaurantcard Footer copywrite link Address contact */
//**//// two types of export/defaults
->Defaults Export/Defaults
defaults export Header; import Header from "path"
->Named Export/Defaults
export const Header; import {header} from "path"
useEffect(()=>{
console.log("use Effect called");
},[]);
console.log("body render")
# state React Variable define
- client side Routing
- server side Routing
- install @reduxjs/ToolKit and react-redux
- Build our store
- connect our store to our app
- Slice(cartSlice)
- dispatch (action)
- selector
##chunking , code splitting , dynamic bundles, lazy loading,ondemand loading on demand loading dynamic import - smaller bundles of each file
- Unit testing
- Integration Testing
- End to End Testing - e2e testing
- install react testing library
- install jest
- install babel dependancies
- configure babel
- configure Parcel config file to defaults babel transpilation
- jest configuration - npm init jest@latest
- intall jsdom library