How to Route A Modal with React Router v6.4 or v6.23.1 #9647
Unanswered
Emmanuel-Xs
asked this question in
Q&A
Replies: 0 comments
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.
-
Hi everyone,
I'm trying to implement a modal in my React application using React Router v6.4 (or v6.23.1). My goal is to have a modal that can be navigated to via a specific route (e.g., /register) without disrupting the main layout of the page.
Here’s a brief overview of my setup:
Router Setup:
SignUp Component
Root Route
MainLayout.jsx
What I’ve Tried:
I have scoured through the internet for howto's but couldn't find a good solution for this problem
I would appreciate any guidance or suggestions on how to properly route a modal in React Router v6.4 or v6.23.1. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions