From 0e13e935b8d60b2b9315927f1f1628596b07b0e5 Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Fri, 29 Jun 2018 13:11:10 -0400 Subject: [PATCH] Adding react to dapp --- app/index.html | 5 ++--- app/js/index.js | 13 +++++++++++++ package.json | 7 ++++++- 3 files changed, 21 insertions(+), 4 deletions(-) diff --git a/app/index.html b/app/index.html index 8068e7c..884ce96 100644 --- a/app/index.html +++ b/app/index.html @@ -2,10 +2,9 @@ Embark - -

Welcome to Embark!

-

See the Embark's documentation to see what you can do with Embark!

+
+ diff --git a/app/js/index.js b/app/js/index.js index 5b0f64d..01d3137 100644 --- a/app/js/index.js +++ b/app/js/index.js @@ -4,3 +4,16 @@ import EmbarkJS from 'Embark/EmbarkJS'; // e.g if you have a contract named SimpleStorage: //import SimpleStorage from 'Embark/contracts/SimpleStorage'; +import React from 'react'; +import ReactDOM from 'react-dom'; + +class App extends React.Component { + + render(){ + return
+ Hola Mundo +
; + } +} + +ReactDOM.render(, document.getElementById('app')); diff --git a/package.json b/package.json index 951f1d9..3fe56d7 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,11 @@ "author": "", "license": "ISC", "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" } }