From 2c22f8223ec30bc00023cd85016d0985944826e5 Mon Sep 17 00:00:00 2001 From: oscar Date: Sat, 18 Mar 2023 11:01:21 +1300 Subject: [PATCH] simplify the app.js and index.js --- public/index.html | 43 +++++++++++++++++++++++++++++++++++++++++++ src/App.js | 13 +++++++++++++ src/index.js | 7 +++++++ 3 files changed, 63 insertions(+) create mode 100644 public/index.html create mode 100644 src/App.js create mode 100644 src/index.js diff --git a/public/index.html b/public/index.html new file mode 100644 index 0000000..aa069f2 --- /dev/null +++ b/public/index.html @@ -0,0 +1,43 @@ + + + + + + + + + + + + + React App + + + +
+ + + diff --git a/src/App.js b/src/App.js new file mode 100644 index 0000000..cca1714 --- /dev/null +++ b/src/App.js @@ -0,0 +1,13 @@ +import React from 'react'; + +import Header from './components/Layout/Header'; + +const App = () => { + return ( + <> +
+ + ) +} + +export default App; \ No newline at end of file diff --git a/src/index.js b/src/index.js new file mode 100644 index 0000000..a0ba13d --- /dev/null +++ b/src/index.js @@ -0,0 +1,7 @@ +import React from 'react'; +import ReactDOM from 'react-dom'; + +import App from './App'; + +ReactDOM.render(, document.getElementById("root")); +