Function component is supported! 🎉
function ChildComponent(props) {
return (
<span>{props.msg}</span>
)
}
class ParentComponent extends Component {
render() {
return (
<div>
<ChildComponent msg="omi" />
</div>
)
}
}