This is a description of the food application that I have built using Parcel bundler. The application includes features such as image optimization, minification, bundling, compressing, consistent hashing, code splitting, differential bundling for older browsers, error handling, HTTPS support, tree shaking to remove unused code, and more.
- React Hooks
- Redux Toolkit
- React Testing Library
- Parcel Bundler
- Hot Module Replacement (HMR)
- Caching for faster builds
- Header
- Logo
- Navigation Items
- Body
- Search function
- Restaurant Menu
- Image
- Name of Restaurant, Star Rating, Cuisine, Delivery Time
- Footer
- Links
- Address
- Contact
useState()
- Superpowerful State Variables in ReactuseEffect()
- Client Side Routing
- Server Side Routing
- Default Export/Import
export default Component; import Component from "path";
- Named Export/Import
export const Component; import {Component} from "path";
- Types of Testing
- Unit Testing
- Integration Testing
- End to End Testing (e2e testing)
- Setting up Testing in the App
- Install React Testing Library
- Install Jest
- Configure Babel
- Configure Parcel Config file to disable default Babel transpilation
- Initialize Jest -
npx jest --init
- Install jsdom library
- Install @babel/preset-react to make JSX work in test cases
- Include @babel/preset-react in the Babel config
- Install @testing-library/jest-dom
- Parcel Dev Build
- Local Server
- Code Splitting
- Diagnostic
- Different dev and prod bundles