A simple React function component

const HelloMessage = function({name}){
render() {
return <div>Hello {name}</div>
}
}

ReactDOM.render(
<HelloMessage name="Taylor" />,
document.getElementById('root'),
)