From b6e025ed1d7705fd878530c589a94338ce033caf Mon Sep 17 00:00:00 2001 From: Kristoffer Longva Eriksen Date: Tue, 15 Mar 2022 13:04:01 +0100 Subject: [PATCH] Added list elements --- src/client/src/front_page.js | 10 ---------- src/client/src/index.js | 6 ++++-- src/client/src/list_component.js | 14 ++++++++++++++ 3 files changed, 18 insertions(+), 12 deletions(-) delete mode 100644 src/client/src/front_page.js create mode 100644 src/client/src/list_component.js 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"));