Skip to content

Instantly share code, notes, and snippets.

@jessewaites
Created October 26, 2017 18:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jessewaites/ff057097328b823251b3976117404934 to your computer and use it in GitHub Desktop.
Save jessewaites/ff057097328b823251b3976117404934 to your computer and use it in GitHub Desktop.
Link To External Page in React Router
<BrowserRouter>
<div>
<Match exactly pattern="/google" component={() => window.location = 'http://google.com'} />
<Match pattern="/store/:storeId" component={App} />
<Miss component={NotFound} />
</div>
</BrowserRouter>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment