Browse Source

Add app component

pull/9/head
garritfra 5 years ago
parent
commit
088badc987
  1. 18
      frontend/public/index.html
  2. 9
      frontend/src/App.js
  3. 5
      frontend/src/index.js

18
frontend/public/index.html

@ -1,16 +1,14 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge"> <meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Ditto Blockchain</title> <title>Ditto Blockchain</title>
</head> </head>
<body> <body>
<div id="root"></div> <div id="root"></div>
<script src="../dist/index.js"></script> <script src="../src/index.js"></script>
</body> </body>
</html> </html>

9
frontend/src/App.js

@ -0,0 +1,9 @@
import React, { useState } from "react";
export default function App() {
return (
<div>
<h1>Hello from App!</h1>
</div>
);
}

5
frontend/src/index.js

@ -1,4 +1,5 @@
import React from "react" import React from "react";
import ReactDOM from "react-dom"; import ReactDOM from "react-dom";
import App from "./App";
ReactDOM.render(<h1>Hello World</h1>, document.getElementById("root")) ReactDOM.render(<App />, document.getElementById("root"));

Loading…
Cancel
Save