Skip to content

Commit 7f8fc5f

Browse files
committed
👌 IMPROVE: Hello world outputs to Home
1 parent 6cf680c commit 7f8fc5f

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/App.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import {
55
Route
66
} from 'react-router-dom'
77

8-
import HelloWorld from './Components/HelloWorld'
98
import Header from './Components/Header'
109
import Footer from './Components/Footer'
1110
import Home from './Views/Home'
@@ -19,8 +18,6 @@ function App() {
1918
<Router>
2019
<Header />
2120

22-
<HelloWorld name="Drake"/>
23-
2421
<Switch>
2522
<Route exact path="/">
2623
<Home/>

src/Views/Home.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import React from 'react'
2+
import HelloWorld from '../Components/HelloWorld'
23

34
function Home(){
45
return (
56
<div>
67
<h1 className="font-bold text-2xl">Home page</h1>
7-
<p>Home page content</p>
8+
<HelloWorld name="Drake"/>
89
</div>
910
)
1011
}

0 commit comments

Comments
 (0)