Skip to content

Function component is supported! 🎉

Compare
Choose a tag to compare
@dntzhang dntzhang released this 12 Jan 03:41
· 242 commits to master since this release
function ChildComponent(props) {
  return (
    <span>{props.msg}</span>
  )
}

class ParentComponent extends Component {
  render() {
    return (
      <div>
        <ChildComponent msg="omi" />
      </div>
    )
  }
}