Reorganizing template
This commit is contained in:
parent
2d1d9994ad
commit
f687b9880e
|
@ -6,6 +6,32 @@ import ReactDOM from 'react-dom';
|
||||||
import { FormGroup, ControlLabel, FormControl, Checkbox, Button, Alert, InputGroup } from 'react-bootstrap';
|
import { FormGroup, ControlLabel, FormControl, Checkbox, Button, Alert, InputGroup } from 'react-bootstrap';
|
||||||
|
|
||||||
|
|
||||||
|
class {{contractName}}UI extends React.Component {
|
||||||
|
constructor (props) {
|
||||||
|
super(props);
|
||||||
|
this.state = {
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
render(){
|
||||||
|
return (<div>
|
||||||
|
{{#each functions}}
|
||||||
|
<{{capitalize name}}Form{{@index}} />
|
||||||
|
{{/each}}
|
||||||
|
</div>);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
ReactDOM.render(<div>
|
||||||
|
<h1>{{title}}</h1>
|
||||||
|
<{{contractName}}UI />
|
||||||
|
</div>,
|
||||||
|
document.getElementById('app')
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{{#each functions}}
|
{{#each functions}}
|
||||||
class {{capitalize name}}Form{{@index}} extends React.Component {
|
class {{capitalize name}}Form{{@index}} extends React.Component {
|
||||||
constructor(props){
|
constructor(props){
|
||||||
|
|
Loading…
Reference in New Issue