diff --git a/src/client/src/front_page.js b/src/client/src/front_page.js deleted file mode 100644 index a4dd65d..0000000 --- a/src/client/src/front_page.js +++ /dev/null @@ -1,10 +0,0 @@ -import React from "react"; -import ReactDOM from "react-dom"; - -export default class Hello extends React.Component { - render() { - return

Hello

; - } -} - -ReactDOM.render(, document.getElementById("root")); diff --git a/src/client/src/index.js b/src/client/src/index.js index 59534e0..2a42bd8 100644 --- a/src/client/src/index.js +++ b/src/client/src/index.js @@ -1,11 +1,13 @@ import React from "react"; import ReactDOM from "react-dom"; import "./index.css"; -import Hello from "./front_page"; +import ListElement from "./list_component"; ReactDOM.render( - + + + , document.getElementById("root") ); diff --git a/src/client/src/list_component.js b/src/client/src/list_component.js new file mode 100644 index 0000000..46e53e1 --- /dev/null +++ b/src/client/src/list_component.js @@ -0,0 +1,14 @@ +import React from "react"; +import ReactDOM from "react-dom"; + +export default class ListElement extends React.Component { + render() { + return ( + <> +
Turnering 1, deltakere, Dato
+ + ); + } +} + +ReactDOM.render(, document.getElementById("root"));