/React

My struggles learning react

Primary LanguageJavaScript

React

Parcel

  • Dev Build
  • Local Server
  • HMR - Hot Module Replacement
  • File Watching Algorithm - written in C++
  • Caching - Faster Builds
  • Image Optimization
  • Minification
  • Bundling
  • Compression
  • Consistent Hashing
  • Code Spliting
  • Differential Bundling - to support older browsers
  • Diagnostics
  • Error Handling
  • HTTPs
  • Tree Shaking - remove unused files
  • Different dev and prod bundles

Types of import/export(s)

  • Default export default Component; import Compenent from "path"

  • Named export const Component; import {Component} from "path"

React Hooks

  • normal JS utility functions
  • 2 major hooks useState(); - used to generate state variables useEffect();