Skip to content

Commit 0ec6c71

Browse files
committed
asterisk in example
1 parent 791e4e2 commit 0ec6c71

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

example/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ window.addEventListener('popstate', e => {
147147
// <Route path=":id" component={Pet} />
148148
// </Route>
149149
//
150-
// <Route path="*" component={NotFound} />
150+
// <Route path="(.*)" component={NotFound} />
151151
// </Router>, document.querySelector('#app'))
152152
// }
153153

@@ -163,7 +163,7 @@ function render(state) {
163163
</Route>
164164
</Route>
165165

166-
<Route path="*" component={NotFound} />
166+
<Route path="(.*)" component={NotFound} />
167167
</Router>, document.querySelector('#app'))
168168
}
169169

@@ -174,7 +174,7 @@ function render(state) {
174174
// <Route path="/users/:id" component={User} />
175175
// <Route path="/pets" component={Pets} />
176176
// <Route path="/pets/:id" component={Pet} />
177-
// <Route path="*" component={NotFound} />
177+
// <Route path="(.*)" component={NotFound} />
178178
// </Router>, document.querySelector('#app'))
179179
// }
180180

0 commit comments

Comments
 (0)