Added list elements

This commit is contained in:
Kristoffer Longva Eriksen 2022-03-15 13:04:01 +01:00
parent 5fbec25543
commit 8e90a7ac37
3 changed files with 18 additions and 12 deletions

View File

@ -1,10 +0,0 @@
import React from "react";
import ReactDOM from "react-dom";
export default class Hello extends React.Component {
render() {
return <h1>Hello</h1>;
}
}
ReactDOM.render(<Hello />, document.getElementById("root"));

View File

@ -1,11 +1,13 @@
import React from "react"; import React from "react";
import ReactDOM from "react-dom"; import ReactDOM from "react-dom";
import "./index.css"; import "./index.css";
import Hello from "./front_page"; import ListElement from "./list_component";
ReactDOM.render( ReactDOM.render(
<React.StrictMode> <React.StrictMode>
<Hello /> <ListElement />
<ListElement />
<ListElement />
</React.StrictMode>, </React.StrictMode>,
document.getElementById("root") document.getElementById("root")
); );

View File

@ -0,0 +1,14 @@
import React from "react";
import ReactDOM from "react-dom";
export default class ListElement extends React.Component {
render() {
return (
<>
<div>Turnering 1, deltakere, Dato</div>
</>
);
}
}
ReactDOM.render(<Hello />, document.getElementById("root"));