DEV Community

Akash
Akash

Posted on

REACT IN JS

  • Today I learned about React,It is a open source javascript library formerly developed by Facebook now managing by (meta).
  • It Allow us to make reusable UI Components that manages its own state,more efficient and predictable .
  • React has HMR component,which updates changed modules instantly in browser .without reloading or refreshing a page
  • By react we develop a single page application
  • React runs in Node
  • MPA- Multiple Page Application
  • NPM- NODE Package Manager
  1. Difference between Library and Framework

=> FRAMEWORK

  • Framework calls your code ,it's incharge for itself only thing we do is just plug our code in its structure
  • It calls the code whenever it wanted and when right time comes .

=> LIBRARY

  • Library is a code you call,In library you are in charge .we import our code and call by its function whenever we want
  • Also our code control id in flow

2.WHAT IS BUILT TOOL

  • Built tool it process our own code into Optimised file that browser can run ,Because browser doesn't understand JSX so built tool optimize it before it run .

=> BUILT TOOL IN REACT

  • VITE
  • Create react app/web pack (TBD)
  • Parcel (TBD)
  • Turbo pack (TBD)

1.VITE

  • Extremely fast
  • Currently it's popular among developers
  • Developer's go to for react projects
  • Also it has HMR (hot module replacement) Fixes changed modules in browsers instantly .

Top comments (0)