πŸ–‹οΈ Summary Notes #blog
React

React.js

What?

Some Basic Concepts

Some Advanced Topics

What React Ecosystem (Tools) ?

What are the Rules?

  1. Never Mutate The State with = sign #react #rule (opens in a new tab)

Why?

Why React?

How?

How to optimize?

  1. Use Production Builds: When deploying your React application, make sure to use a production build. This will reduce the size of the JavaScript bundle and enable optimizations such as minification, which can significantly improve performance.
  2. Code Splitting #modular #modularizing (opens in a new tab)
  3. Use Virtual DOM: React uses a virtual DOM to manage updates to the UI. By using a virtual DOM, React can update the UI more efficiently and can help to improve performance.
  4. Use React Profiler: React Profiler is a built-in tool that can help you to identify performance bottlenecks in your application. By using React Profiler, you can identify which components are causing performance issues and take steps to optimize them.
  5. Use Performance Budgets: Setting performance budgets can help to ensure that your application remains fast and responsive. By setting budgets for things like load time and rendering performance, you can ensure that your application remains performant even as it grows in complexity.
  6. Use Server-Side Rendering: Server-side rendering can help to improve the initial load time of your application and improve overall performance. By rendering your application on the server and sending the HTML to the client, you can reduce the amount of JavaScript that needs to be loaded and improve the time-to-first-byte.