Skip to content

Instantly share code, notes, and snippets.

@bonnie
Last active March 29, 2022 20:08
Show Gist options
  • Save bonnie/607b0cc53d49c1954a2d55347a23438d to your computer and use it in GitHub Desktop.
Save bonnie/607b0cc53d49c1954a2d55347a23438d to your computer and use it in GitHub Desktop.
const MemoryRouterWithInitialRoutes = ({ children }) =>
<MemoryRouter>{children}</MemoryRouter>;
const customRender = (ui, options) => {
return render(
ui,
{
wrapper: MemoryRouterWithInitialRoutes,
...options
}
);
}
@bonnie
Copy link
Author

bonnie commented Mar 29, 2022

corrected -- thank you for bringing this to my attention!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment