diff options
author | terminaldweller <thabogre@gmail.com> | 2022-03-21 08:44:47 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2022-03-21 08:44:47 +0000 |
commit | 9c6713a8cee48529eb11f7b16845eb6bd1e2a482 (patch) | |
tree | 784f86fe95e051703fe07225ea9015a21058a9d7 /spring-front/src/index.js | |
parent | daily commit.wip (diff) | |
download | mdrtl-9c6713a8cee48529eb11f7b16845eb6bd1e2a482.tar.gz mdrtl-9c6713a8cee48529eb11f7b16845eb6bd1e2a482.zip |
wip
Diffstat (limited to '')
-rw-r--r-- | spring-front/src/index.js | 9 | ||||
-rw-r--r-- | spring-front/src/index.jsx | 20 |
2 files changed, 29 insertions, 0 deletions
diff --git a/spring-front/src/index.js b/spring-front/src/index.js new file mode 100644 index 0000000..81d4809 --- /dev/null +++ b/spring-front/src/index.js @@ -0,0 +1,9 @@ +import React from "react"; + +const page = ( + <div> + <h1>Hello, everyone!</h1> + <p>A paragraph</p> + </div> +); +React.ReactDOM.render(page, document.getElementById("root")); diff --git a/spring-front/src/index.jsx b/spring-front/src/index.jsx new file mode 100644 index 0000000..0ef0cdf --- /dev/null +++ b/spring-front/src/index.jsx @@ -0,0 +1,20 @@ +import React from "react"; + +const page = ( + <div> + <h1>Hello, everyone!</h1> + <p>A paragraph</p> + </div> +); + +const navbar = ( + <nav> + <h1>terminaldweller.com</h1> + <ul> + <li>Pricing</li> + <li>About</li> + <li>Contact</li> + </ul> + </nav> +) +React.ReactDOM.render(navbar, document.getElementById("root")); |