File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,17 +11,7 @@ Build final files for production
1111npm run build
1212```
1313
14- ## 01) Set up Routing
15- src/App.js
16- ```
17- <BrowserRouter>
18- <Switch>
19- <Route exact path="/" name="Home" component={Home} />
20- </Switch>
21- </BrowserRouter>
22- ```
23-
24- ## 02) Set up Home component
14+ ## 01) Set up Home component
2515```
2616<div className="signup-form">
2717 <input type="text" value={this.state.name} onChange={this.handleNameChange} placeholder="Your Name" />
Original file line number Diff line number Diff line change @@ -6,7 +6,11 @@ import Home from './components/Home/Home';
66class App extends Component {
77 render ( ) {
88 return (
9-
9+ < BrowserRouter >
10+ < Switch >
11+ < Route exact path = "/" name = "Home" component = { Home } />
12+ </ Switch >
13+ </ BrowserRouter >
1014 ) ;
1115 }
1216}
You can’t perform that action at this time.
0 commit comments