Reorganizing template

This commit is contained in:
Richard Ramos 2018-05-15 08:33:07 -04:00 committed by Pascal Precht
parent 2d1d9994ad
commit f687b9880e
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
1 changed files with 26 additions and 0 deletions

View File

@ -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){