1. Babel in React
The Babel in JavaScript compiler that convert modern JavaScript or JSX code to old JavaScript that all browsers can understand using React.createElement().
2. Components in React
In React components are reusable, independent building blocks of their interface, taken input called props and return JSX, using function and class components.
3. Props vs State
Aspect | Props | State |
---|---|---|
Definition | Read-only input passed from parent component to child component. | A component’s own changeable data that determines its behavior or appearance. |
Usage | Share data between components. | Store values that can change over time, managed inside components. |
Modification | Set by the parent, don’t change in the child. | Updated using setState (class) or useState (function). |
4. React DOM
Th react Dom is package in react that handle rendering react component to the actual DOM in browser . It connect you react code vituralDOM to the real broweser
Top comments (0)