-
Notifications
You must be signed in to change notification settings - Fork 83
Open
Description
It would be nice to have a live template for a component using flow, propTypes, and defaultProps. See this skeleton on Flow's site.
Maybe something like:
// @flow
import React, {Component} from 'react'
type Props = {}
type State = {}
class $COMPONENT$ extends Component {
static propTypes = {}
static defaultProps = {}
props: Props
state: State
constructor(props: Props) {
super(props)
this.props = props
this.state = {}
}
render() {
return (
<div></div>
)
}
}
export default $COMPONENT$
alexdong
Metadata
Metadata
Assignees
Labels
No labels