Skip to content

Commit

Permalink
Fix redux example (#2274)
Browse files Browse the repository at this point in the history
BrowserRouter doesn't provide any `history` props. We need to use Browser instead.

ref: https://github.com/ReactTraining/react-router/blob/master/packages/react-router-dom/modules/BrowserRouter.js#L24
  • Loading branch information
fabien0102 authored and KyleAMathews committed Sep 29, 2017
1 parent bedfaf3 commit d51e96f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/using-redux/gatsby-browser.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { BrowserRouter as Router } from 'react-router-dom'
import { Router } from 'react-router-dom'
import { Provider } from 'react-redux'

import createStore from './src/state/createStore'
Expand Down

0 comments on commit d51e96f

Please sign in to comment.