Why does the migration guide say to make your components children? #9055
Unanswered
cdeutsch
asked this question in
v5 to v6 Migration
Replies: 1 comment 1 reply
-
The point of that step was to go from a This step should be doable using find/replace on your codebase. Just find all instances of |
Beta Was this translation helpful? Give feedback.
1 reply
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I followed the migration guide and it says to stop using
component
in<Route path="/about" component={About} />
and make it a child instead:Spent half a day doing that, a day doing the rest of the upgrade to v6, only to find out
Route
wants the component to be set as theelement
instead<Route path="/about" element={About} />
Ahhhh....WHY did I spend half a day making the component a child???
Might way to delete that section from your docs. 😠
Beta Was this translation helpful? Give feedback.
All reactions