A simple React function component
const HelloMessage = function({name}){
render() {
return <div>Hello {name}</div>
}
}
ReactDOM.render(
<HelloMessage name="Taylor" />,
document.getElementById('root'),
)
- Next: EVENT HANDLER IN REACT
- Previous: Doing a (GET) fetch request