タグ

ブックマーク / devhints.io (1)

  • React.js cheatsheet

    <Video fullscreen={true} autoplay={false} /> render () { this.props.fullscreen const { fullscreen, autoplay } = this.props ··· } Use this.props to access properties passed to the component. See: Properties constructor(props) { super(props) this.state = { username: undefined } } this.setState({ username: 'rstacruz' }) render () { this.state.username const { username } = this.state ··· } Use states

    React.js cheatsheet
    mitukiii
    mitukiii 2018/05/01
  • 1