What is React
- A user interface Library.
- What is a component?
- A small piece of code that fills a certain part of the user interface.
- What is the dataflow of React?
- One way dataflow.
- Data flows down.
- How do we make a React element a DOM element?
- By using a JavaScript function.
import React from ‘react’;
import ReactDOM from ‘react-dom’;
import Header from ‘./Header’;
import Content from ‘./Content’;
import Footer from ‘./Footer’;
Function App(){
<div className=’app’>
<Header />
<Content />
<Footer />
</div>
}
ReactDOM.redner(
<App />,
document.getElementById(‘root’)
);
- React is a User Interface _____
- Library
- Agnostic User Interface Library.
- Which direction does data flow in React?
- Data flows downward.

- Every component manages its own __
- State and pass it down to its children.