Matched leaf route at location “/” does not have an element

In V6, you can’t use the component prop anymore. It was replaced in favor of element:

<Route path="/" element={<Home />}></Route>

More info in the migration doc.

Leave a Comment