From 088badc987b508575e4d20c8a2b8ab8b443bde05 Mon Sep 17 00:00:00 2001 From: garritfra Date: Sat, 23 Feb 2019 14:13:52 +0100 Subject: [PATCH] Add app component --- frontend/public/index.html | 18 ++++++++---------- frontend/src/App.js | 9 +++++++++ frontend/src/index.js | 5 +++-- 3 files changed, 20 insertions(+), 12 deletions(-) create mode 100644 frontend/src/App.js diff --git a/frontend/public/index.html b/frontend/public/index.html index 476826a..528cdfd 100644 --- a/frontend/public/index.html +++ b/frontend/public/index.html @@ -1,16 +1,14 @@ - - - - + + + + Ditto Blockchain - - + +
- - + + - - diff --git a/frontend/src/App.js b/frontend/src/App.js new file mode 100644 index 0000000..c15901e --- /dev/null +++ b/frontend/src/App.js @@ -0,0 +1,9 @@ +import React, { useState } from "react"; + +export default function App() { + return ( +
+

Hello from App!

+
+ ); +} diff --git a/frontend/src/index.js b/frontend/src/index.js index 958d80c..c24e9d8 100644 --- a/frontend/src/index.js +++ b/frontend/src/index.js @@ -1,4 +1,5 @@ -import React from "react" +import React from "react"; import ReactDOM from "react-dom"; +import App from "./App"; -ReactDOM.render(

Hello World

, document.getElementById("root")) \ No newline at end of file +ReactDOM.render(, document.getElementById("root"));