1
- import React , { Component } from 'react' ;
2
- import { BrowserRouter as Router , Route , Link } from 'react-router-dom'
3
- import PerformanceOptimizations from './performance-optimizations'
1
+ import React , { Component } from "react" ;
2
+ import { BrowserRouter as Router , Route , Link } from "react-router-dom" ;
3
+ import PerformanceOptimizations from "./performance-optimizations" ;
4
+ import ErrorBoundaries from "./error-boundaries" ;
4
5
5
6
class App extends Component {
6
7
render ( ) {
@@ -9,13 +10,21 @@ class App extends Component {
9
10
< div className = "container" >
10
11
< div className = "sidebar" >
11
12
< ul >
12
- < li > < Link to = '/' > Refs</ Link > </ li >
13
- < li > < Link to = '/performance-optimizations' > perfromance optimizations</ Link > </ li >
13
+ < li >
14
+ < Link to = "/" > Refs</ Link >
15
+ </ li >
16
+ < li >
17
+ < Link to = "/performance-optimizations" > perfromance optimizations</ Link >
18
+ </ li >
19
+ < li >
20
+ < Link to = "/error-boundaries" > Error Boundaries</ Link >
21
+ </ li >
14
22
</ ul >
15
23
</ div >
16
24
< div className = "content" >
17
- < Route exact path = '/' component = { PerformanceOptimizations } />
18
- < Route path = '/performance-optimizations' component = { PerformanceOptimizations } />
25
+ < Route exact path = "/" component = { PerformanceOptimizations } />
26
+ < Route path = "/performance-optimizations" component = { PerformanceOptimizations } />
27
+ < Route path = "/error-boundaries" component = { ErrorBoundaries } />
19
28
</ div >
20
29
</ div >
21
30
</ Router >
0 commit comments