From d51e96f0f3eff871c02ef51e4c9c16d9bf83224e Mon Sep 17 00:00:00 2001 From: Fabien BERNARD Date: Fri, 29 Sep 2017 21:38:46 +0200 Subject: [PATCH] Fix redux example (#2274) 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 --- examples/using-redux/gatsby-browser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/using-redux/gatsby-browser.js b/examples/using-redux/gatsby-browser.js index 34d5816c955a7..bb16b6799cf5f 100644 --- a/examples/using-redux/gatsby-browser.js +++ b/examples/using-redux/gatsby-browser.js @@ -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'