File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ window.addEventListener('popstate', e => {
147
147
// <Route path=":id" component={Pet} />
148
148
// </Route>
149
149
//
150
- // <Route path="* " component={NotFound} />
150
+ // <Route path="(.*) " component={NotFound} />
151
151
// </Router>, document.querySelector('#app'))
152
152
// }
153
153
@@ -163,7 +163,7 @@ function render(state) {
163
163
</ Route >
164
164
</ Route >
165
165
166
- < Route path = "* " component = { NotFound } />
166
+ < Route path = "(.*) " component = { NotFound } />
167
167
</ Router > , document . querySelector ( '#app' ) )
168
168
}
169
169
@@ -174,7 +174,7 @@ function render(state) {
174
174
// <Route path="/users/:id" component={User} />
175
175
// <Route path="/pets" component={Pets} />
176
176
// <Route path="/pets/:id" component={Pet} />
177
- // <Route path="* " component={NotFound} />
177
+ // <Route path="(.*) " component={NotFound} />
178
178
// </Router>, document.querySelector('#app'))
179
179
// }
180
180
You can’t perform that action at this time.
0 commit comments