Created
August 2, 2019 20:24
-
-
Save yanmendes/2cdc90e65a56383ec16bcbae8aa19075 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
const renderWithRedux = ( | |
ui, | |
{ | |
initialState = {}, | |
store = createStore(reducer, initialState, applyMiddleware(thunk)) | |
} = {} | |
) => ({ | |
...render(<Provider store={store}>{ui}</Provider>), | |
store | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment