embark/lib/modules/scaffolding-react/templates/dapp.js.tpl

26 lines
539 B
Smarty
Raw Normal View History

2018-05-10 16:31:10 +00:00
import EmbarkJS from 'Embark/EmbarkJS';
import {{contractName}} from 'Embark/contracts/{{contractName}}';
import React from 'react';
import ReactDOM from 'react-dom';
import { Tabs, Tab } from 'react-bootstrap';
2018-05-10 16:31:10 +00:00
class {{contractName}}UI extends React.Component {
constructor (props) {
super(props);
this.state = {
};
}
render(){
return (<h2>Test</h2>);
}
}
ReactDOM.render(<div>
2018-05-10 16:31:10 +00:00
<h1>{{title}}</h1>
<{{contractName}}UI />
</div>,
document.getElementById('app')
);