Mitch Masia
Building awesome products using React, React Native, GraphQL, and Elixir.
import React, { Component } from 'react'
import PropTypes from 'prop-types'
class Title extends Component {
componentDidMount() { ... }
render() {
return (
<h1>Welcome to {this.props.title}</h1>
)
}
}
Title.propTypes = {
content: PropTypes.string.isRequired
}
export default Title
import React, { Component } from 'react'
import { Text } from 'react-native'
import PropTypes from 'prop-types'
class Title extends Component {
componentDidMount() { ... }
render() {
return (
<Text>Welcome to {this.props.title}</Text>
)
}
}
Title.propTypes = {
content: PropTypes.string.isRequired
}
export default Title
By Mitch Masia
The good, the bad, and some other stuff too.
Building awesome products using React, React Native, GraphQL, and Elixir.