Skip to content

Commit 1fcb685

Browse files
committed
Remove routing step
1 parent 93eeca8 commit 1fcb685

2 files changed

Lines changed: 6 additions & 12 deletions

File tree

tryit/instructions.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,7 @@ Build final files for production
1111
npm 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" />

tryit/src/App.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ import Home from './components/Home/Home';
66
class 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
}

0 commit comments

Comments
 (0)