diff --git a/lib/modules/scaffolding-react/templates/dapp.js.tpl b/lib/modules/scaffolding-react/templates/dapp.js.tpl index dae3409ec..c0827fc7b 100644 --- a/lib/modules/scaffolding-react/templates/dapp.js.tpl +++ b/lib/modules/scaffolding-react/templates/dapp.js.tpl @@ -6,32 +6,6 @@ import ReactDOM from 'react-dom'; 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 (
- {{#each functions}} - <{{capitalize name}}Form{{@index}} /> - {{/each}} -
); - } -} - - -ReactDOM.render(
-

{{title}}

- <{{contractName}}UI /> -
, - document.getElementById('app') -); - - - {{#each functions}} class {{capitalize name}}Form{{@index}} extends React.Component { constructor(props){ @@ -186,3 +160,29 @@ class {{capitalize name}}Form{{@index}} extends React.Component { } {{/each}} + + +class {{contractName}}UI extends React.Component { + constructor (props) { + super(props); + this.state = { + }; + } + + render(){ + return (
+ {{#each functions}} + <{{capitalize name}}Form{{@index}} /> + {{/each}} +
); + } +} + + +ReactDOM.render(
+

{{title}}

+ <{{contractName}}UI /> +
, + document.getElementById('app') +); +