Skip to content

Commit

Permalink
Merge pull request #2 from sajadevo/refactor/v0.2.0
Browse files Browse the repository at this point in the history
Fix the element issue in react router dom
  • Loading branch information
webcat12345 authored Jan 13, 2023
2 parents f27390c + e75a14c commit 0225d83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const App = () => {
<Route
path={route.path}
key={"route-key-" + index}
element={<route.component />}
element={React.createElement(route.component)}
/>
))}
<Route path="*" element={<PageNotFound />} />
Expand Down

0 comments on commit 0225d83

Please sign in to comment.