UNPKG

401 BJavaScriptView Raw
1module.exports = function(name, upper){
2
3return `
4/* @flow */
5
6import React, { Component, PropTypes } from 'react';
7
8class ${upper} extends Component {
9 constructor(props: Object) {
10 super(props);
11
12 this.state = {/* add your state */};
13 }
14
15 render(): Object {
16 return (
17 <div></div>
18 );
19 }
20}
21
22${upper}.propTypes = {
23 /* fill out proptypes */
24};
25
26export default ${upper};
27`
28
29}
\No newline at end of file