Reading--Notes

React

What Is React ?

Its a flexible JavaScript library for building user interfaces. It lets you compose complex UIs from small and isolated pieces of code called “components”.

## Whats JSX ?

syntax extension to JavaScript. We recommend using it with React to describe what the UI should look like.

example


component :

  1. What is a component ?

    A component is a reusable set of well-defined functionality that encapsulates its implementation and exporting it as a higher-level interfacem and is a software object, intended to interact with other components.

  2. What are the charactistics of a component ?

  1. What are the advantages of using component based architecture ?

Props and how we can use it in react :

  1. What is props short for ?

    is a special keyword in React which stands for properties .

  2. How are props used in React ?

    It used for passing data from one component to another.

  3. What is the flow of props ?

    It can only be passed to components in one-way (parent to child)