React Router w/ .Net Backend #12979
Unanswered
chrisryanouellette
asked this question in
Q&A
Replies: 1 comment 2 replies
-
React Router is a router, if you don't want to handle the router with React Router, then why use React Router? I think you will prefer something like Inertia, that AFAIK it's not specifically tied to Laravel as there's a Rails version too so it may be possible to use it with .NET, but I'm not expert so you may need to build a .NET version. That said, the common way to integrate RR with a separate backend is to use the backend as an API and the RR app as a Backend for Frontend, the Remix docs has a short guide about this and the idea applies basically the same to RR. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to use React Router as a framework with SSR where the routing is not handled by the package? The .Net backend handles all the routing then renders a view. These views know what entry component needs to be rendered. Would it be possible for React Router to use these component names instead of a url? Then on navigation, a new component name would be used to get the next page (we could handle setting the url some other way).
For what it is worth I know this is not the point of React Router but my org made their choices, I'm just here to try and make them better 😅
Beta Was this translation helpful? Give feedback.
All reactions