2. React - basics #

Created Monday 20 July 2020

FIXME - why React

About React #

UI layers in web apps #

Principles in web dev over the years:

  1. Thinking in components
    1. Atoms - Indivisible entities, e.g icons, buttons
    2. Molecules - Navigation bar
    3. Organisms - Functionality
    4. Templates - group of organisms
    5. Pages - The page we see
    • The advantage - We can reuse components to make our pages. No need to rewrite the code.
    • All the components are independent.
  2. One way data-flow.
  3. Virtual DOM - Handled by React, it is an object which describes our website. Painting is handled in the most optimum way.

React.js Alternatives #

Angular:

React:

Vue: