-
Notifications
You must be signed in to change notification settings - Fork 1k
/
Copy pathApp.js
40 lines (35 loc) · 1.01 KB
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// ## Namaste React Course by Akshay Saini
// Chapter 05 - Let's get Hooked!
import React from "react";
import ReactDOM from "react-dom/client";
import Header from "./Components/Header";
import Body from "./Components/Body";
import Footer from "./Components/Footer";
/* My Food App structure will look like this,
1) Header
- Logo
- Nav Items(right side)
- Cart
2) Body
- Search bar
- Restaurants List
- Restaurant card
- Image
- Name
- Rating
3) Footer
- Links
- Copyrights
*/
// AppLayout component to render: Header, Body and Footer Component
const AppLayout = () => {
return (
<React.Fragment>
<Header />
<Body />
<Footer />
</React.Fragment>
);
};
const root = ReactDOM.createRoot(document.getElementById("root"));
root.render(<AppLayout />);