[Bug]: React router not rendering dynamic route #10123
-
What version of React Router are you using?6.8.1 Steps to Reproduce
Expected BehaviorCode example:
This is my app.tsx
The current behaviorDoes not render anything in the route. The expected behaviorRendering of the route. Actual BehaviorDoes not render anything in the route. |
Beta Was this translation helpful? Give feedback.
Answered by
KennyMwendwaX
Feb 24, 2023
Replies: 1 comment
-
The issue was the order of hooks. Code example:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
KennyMwendwaX
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The issue was the order of hooks.
Code example: