links: React MOC


The Story of React

Before React, Angular, Backbone and jQuery are popular, but their problem is the effects while mutating DOM elements. It’s hard to know what triggered a change in the DOM element.

React then came up with the idea of re-rendering the DOM node (View) whenever an update needs to be done

The Core innovation of React is

v = fn(state)

Even though developers initially didn’t like the idea of writing HTML, CSS and JS in a single file, once they write it they understood what Separation of Concerns is for web

Due to JSX code sharing, UI libraries became popular and helped React grow.

The problem with React is its SPA which means it needs to load a good chunk of initial JS, to solve this Next.js and Remix came


tags: react notes

source: