Closed rhyek closed 6 years ago
With a route configuration such as:
<Route path="/one" component={AsyncComponentOne} /> <Route path="/two" component={AsyncComponentTwo} /> <Route component={NoMatch} />
NoMatch will show while the async components are loading. Any way around this?
NoMatch
Nevermind! I'm an idiot and forgot to use <Switch>, so I was always getting the NoMatch rendered no matter what.
<Switch>
With a route configuration such as:
NoMatch
will show while the async components are loading. Any way around this?