JavaScript
reactjs
React
reactnative

React ComponentとReact Elementの違い

React Component

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

React Element

<Button onPress={() => console.log('react component')} />