Component-Driven User Interface

Why Component

Reusability

Separation of Concerns

β‡’ every component has on clear concern, on focus, one specific task it focuses us on.

<aside> πŸ’‘ Split big chunks of code into multiple smaller functions

</aside>

How is A Component Built?

React and Components

  1. React allow to create re-usable and reactive components

    β†’ consisting of HTML and JS (and CSS)

  2. React uses Declarative Approach for building component

  3. Define the desired target state and let React figure out the actual JS DOM instructions

    β‡’ Build own, custom HTML Elements