diff --git a/static/index.html b/static/index.html index d8a2390..4834a16 100644 --- a/static/index.html +++ b/static/index.html @@ -3,10 +3,12 @@ +
+
Type your source code into here: - + diff --git a/static/main.js b/static/main.js deleted file mode 100644 index d802934..0000000 --- a/static/main.js +++ /dev/null @@ -1,3 +0,0 @@ - - -console.log("YOLO"); diff --git a/static/main.jsx b/static/main.jsx new file mode 100644 index 0000000..8b6bcec --- /dev/null +++ b/static/main.jsx @@ -0,0 +1,5 @@ +const React = require("react"); +const ReactDOM = require("react-dom"); + +const main = document.getElementById("main"); +ReactDOM.render(

Schala web input

, main); diff --git a/static/package.json b/static/package.json new file mode 100644 index 0000000..f8d2e57 --- /dev/null +++ b/static/package.json @@ -0,0 +1,18 @@ +{ + "name": "static", + "version": "1.0.0", + "main": "index.js", + "license": "MIT", + "dependencies": { + "babel": "^6.23.0", + "babel-preset-es2015": "^6.24.1", + "babel-preset-react": "^6.24.1", + "babelify": "^7.3.0", + "browserify": "^14.4.0", + "react": "^15.6.1", + "react-dom": "^15.6.1" + }, + "babel": { + "presets": ["babel-preset-react", "babel-preset-es2015"] + } +}