-
Is there a way to use React Router 7 in framework mode (spa mode), but still plug in custom express middleware? I know Remix could run as an Express plugin, does the same work for RR7? |
Beta Was this translation helpful? Give feedback.
Answered by
sergiodxa
Feb 6, 2025
Replies: 1 comment 1 reply
-
Here's the official template using a custom Express server with React Router v7 framework mode https://github.com/remix-run/react-router-templates/tree/main/node-custom-server I'm not sure if this will work with SPA Mode tho (I never used SPA Mode), but if it worked with Remix it should work with React Router v7. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
einarq
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here's the official template using a custom Express server with React Router v7 framework mode https://github.com/remix-run/react-router-templates/tree/main/node-custom-server
I'm not sure if this will work with SPA Mode tho (I never used SPA Mode), but if it worked with Remix it should work with React Router v7.