Skip to content

im-shikha/namaste-react

Repository files navigation

Namaste React 🙏

Parcel 📦

  • Dev Build
  • Local Server
  • HMR - Hot Module Replacement
  • File Watching Algorithm - Written in C++
  • Caching - Faster Builds
  • Image Optimization
  • Minification-
  • Bundling
  • Compress
  • Consistent Hashing
  • Code Splitting
  • Differential Bundling - support older browsers
  • Diagnostic
  • Error Handling
  • HTTPS
  • Tree Shaking - remove unused code
  • Different build for Dev and Production : Bundles

Two types of Export/Import

  • Default Export/Import

  • export default Component

  • import Component from "path";

  • Named Export/Import

  • export const Component

  • import {Component} from "path";

Two types of Routing in Web apps

  • Client Side Routing
  • Server Side Routing

Redux Toolkit RTK

  • Install @reduxjs/toolkit and react-redux
  • Build our store and connect to our app
  • Create a Cart slice
  • Dispatch an action
  • Selector