Skip to content

Commit

Permalink
Migrate wrapRootComponent to wrapRootElement
Browse files Browse the repository at this point in the history
  • Loading branch information
datakurre committed Sep 4, 2018
1 parent ca36250 commit a11fab9
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions tests/gatsby-starter-default/gatsby-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@ import createStore from './src/state/createStore';

const store = createStore();

export const wrapRootComponent = ({ Root }) => {
const ConnectedRootComponent = () => (
<Provider store={store}>
<Root />
</Provider>
);

return ConnectedRootComponent;
};
export const wrapRootElement = ({ element }) => (
<Provider store={store}>{element}</Provider>
);

0 comments on commit a11fab9

Please sign in to comment.