initial react setup

pull/7/head
LianaHus 9 years ago
parent 39e0d80946
commit bf750ce404
  1. 9
      index.html
  2. 27
      package.json
  3. 7
      src/debugger.js
  4. 9
      src/index.js

@ -0,0 +1,9 @@
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<div id="app"></div>
<script src="build/app.js"></script>
</body>
</html>

@ -0,0 +1,27 @@
{
"name": "remix",
"version": "0.0.1",
"description": "Ethereum IDE and tools for the web",
"main": "index.js",
"dependencies": {
"babel-preset-react": "^6.5.0",
"babelify": "^7.2.0",
"react": "^15.0.1",
"react-dom": "^15.0.1"
},
"devDependencies": {},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "browserify -t [ babelify --presets [ react ] ] src/index.js -o build/app.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/ethereum/remix.git"
},
"author": "cpp-ethereum team",
"license": "MIT",
"bugs": {
"url": "https://github.com/ethereum/remix/issues"
},
"homepage": "https://github.com/ethereum/remix#readme"
}

@ -0,0 +1,7 @@
var React = require('react');
module.exports = React.createClass({
render: function() {
return <p>Sample other Text</p>;
}
});

@ -0,0 +1,9 @@
var ReactDOM = require('react-dom');
var React = require('react');
var Debugger = require('./debugger');
ReactDOM.render(
<Debugger/>,
document.getElementById('app')
);
Loading…
Cancel
Save