Last active
July 23, 2019 09:02
-
-
Save hosembafer/a48ab0f14492828acd2644da492595ca to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
const createStoreProvider = providers => ({ children }) => providers.reverse().reduce((tree, Provider) => <Provider>{tree}</Provider>, children); | |
export default createStoreProvider; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment