Giter Club home page Giter Club logo

namaste-react's Introduction

Namaste React

Parcel

  • Creates a Dev Build
  • Creates a Local Server
  • Does HMR = Hot Module Replacement
  • Uses File Watching Algorithm - Written in C++ to do HMR
  • Every time we save a file it recreates the builds and shows how much time it took it is mostly in milliseconds or seconds.
  • Because it is caching the code that is why it takes so less time to rebuild it.
  • Caching - for Faster Builds (it caches in parcel-cache folder which is available in your folder structure on local machine).
  • Image Optimization
  • Minification
  • Bundling
  • Compressing
  • Consistent Hashing (Read on Google)
  • Code Splitting
  • Differential Bundling - to support older browsers
  • Diagnostics
  • Error Handling
  • Also gives us a way to host app on HTTPs
  • Tree Shaking (algo) - remove unused code
  • Different dev and prod builds

Two types of Export/Import

  • Default Export/Import
    • Export: export default ComponentName/VariableName
    • Import: import ComponentName/VariableName from "path"
    • Used for exporting and importing only one thing from the file
  • Named Export/Import
    • Export: export ComponentName/VariableName
    • Import: import {ComponentName/VariableName} from "path"
    • Used for exporting and importing multiple thing from the file

React Hooks

- They are normal JS utility Functions - (written by react developers)
- They have written this inside react library
  • They are two very important hooks
    • useState() - used to generate super powerful variables in react
    • useEffect()

namaste-react's People

Contributors

anishtilloo avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.