Introduction to React JS
In the Components, we will understand the types and how to reuse of Components.
There are 2 type of Components in react js
1. Stateless Functional Components
2. Statefull Class Components
function New(props){
return<h2>Hello, {props.name}</h2>
}
export default New;
ReactDOM.render(<New name="Deepak"/>,document.getElementById('root'));
1. Components are the parts of user interface
2. Components are reusable can be nested inside the others.