Skip to content
This repository has been archived by the owner on Apr 12, 2020. It is now read-only.

Router exact to pass down to Route #60

Closed
wants to merge 2 commits into from
Closed

Conversation

c0ldra1n
Copy link

@c0ldra1n c0ldra1n commented Nov 10, 2019

Little extra, but this will enable writing:

<Router exact>
  <Route path="/">
    <Index />
  </Route>
  <Route path="/hello">
    <Hello />
  </Route>
  <Route path="*">
    <NotFound />
  </Route>
</Router>

instead of:

<Router>
  <Route exact path="/">
    <Index />
  </Route>
  <Route exact path="/hello">
    <Hello />
  </Route>
  <Route exact path="*">
    <NotFound />
  </Route>
</Router>

Edit: the build failed even without the changes I've made-- not sure why. This is my first pull request, so please let me know if there's anything I've done wrong. Thank you! 😃

@c0ldra1n c0ldra1n closed this Nov 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant