Adding react to dapp

This commit is contained in:
Richard Ramos 2018-06-29 13:11:10 -04:00
parent 6e76d90bf1
commit 0e13e935b8
3 changed files with 21 additions and 4 deletions

View File

@ -2,10 +2,9 @@
<head> <head>
<title>Embark</title> <title>Embark</title>
<link rel="stylesheet" href="css/app.css"> <link rel="stylesheet" href="css/app.css">
<script src="js/app.js"></script>
</head> </head>
<body> <body>
<h3>Welcome to Embark!</h3> <div id="app"></div>
<p>See the <a href="http://embark.readthedocs.io/en/latest/index.html" target="_blank">Embark's documentation</a> to see what you can do with Embark!</p> <script src="js/app.js"></script>
</body> </body>
</html> </html>

View File

@ -4,3 +4,16 @@ import EmbarkJS from 'Embark/EmbarkJS';
// e.g if you have a contract named SimpleStorage: // e.g if you have a contract named SimpleStorage:
//import SimpleStorage from 'Embark/contracts/SimpleStorage'; //import SimpleStorage from 'Embark/contracts/SimpleStorage';
import React from 'react';
import ReactDOM from 'react-dom';
class App extends React.Component {
render(){
return <div>
Hola Mundo
</div>;
}
}
ReactDOM.render(<App></App>, document.getElementById('app'));

View File

@ -8,6 +8,11 @@
"author": "", "author": "",
"license": "ISC", "license": "ISC",
"homepage": "", "homepage": "",
"devDependencies": { "devDependencies": {},
"dependencies": {
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-preset-stage-2": "^6.24.1",
"react": "^16.4.1",
"react-dom": "^16.4.1"
} }
} }