From abfcca84d6df120a21d475766745101b19e70a62 Mon Sep 17 00:00:00 2001 From: jos Date: Tue, 26 Dec 2017 21:09:23 +0100 Subject: [PATCH] Update react demo (it works now :) ) --- examples/react_demo/.gitignore | 2 ++ examples/react_demo/public/index.html | 2 +- examples/react_demo/src/App.css | 9 +++++++++ examples/react_demo/src/App.js | 3 ++- examples/react_demo/src/index.css | 7 ++++++- 5 files changed, 20 insertions(+), 3 deletions(-) diff --git a/examples/react_demo/.gitignore b/examples/react_demo/.gitignore index 6c96c5c..176e56d 100755 --- a/examples/react_demo/.gitignore +++ b/examples/react_demo/.gitignore @@ -13,3 +13,5 @@ build .DS_Store .env npm-debug.log +.vscode +.idea diff --git a/examples/react_demo/public/index.html b/examples/react_demo/public/index.html index 9e2ed6e..b084808 100755 --- a/examples/react_demo/public/index.html +++ b/examples/react_demo/public/index.html @@ -4,7 +4,7 @@ - React demo | JSONeditor + React demo | JSONEditor
diff --git a/examples/react_demo/src/App.css b/examples/react_demo/src/App.css index e69de29..947e01f 100755 --- a/examples/react_demo/src/App.css +++ b/examples/react_demo/src/App.css @@ -0,0 +1,9 @@ + +.app { + width: 100%; + max-width: 600px; +} + +.app h1 { + font-size: 120%; +} \ No newline at end of file diff --git a/examples/react_demo/src/App.js b/examples/react_demo/src/App.js index 23df197..2306db0 100755 --- a/examples/react_demo/src/App.js +++ b/examples/react_demo/src/App.js @@ -26,7 +26,8 @@ class App extends Component { render() { return ( -
+
+

JSONEditor React demo