React Component

class AddButton extends Component {
  render() {
    return(
      <Button onPress={() => console.log('react component')} />
    )
  }
}

React Element

<Button onPress={() => console.log('react component')} />
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account log in.