Last active
March 29, 2022 20:08
-
-
Save bonnie/607b0cc53d49c1954a2d55347a23438d 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
const MemoryRouterWithInitialRoutes = ({ children }) => | |
<MemoryRouter>{children}</MemoryRouter>; | |
const customRender = (ui, options) => { | |
return render( | |
ui, | |
{ | |
wrapper: MemoryRouterWithInitialRoutes, | |
...options | |
} | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
corrected -- thank you for bringing this to my attention!