Skip to content

Commit

Permalink
Use component instead of element
Browse files Browse the repository at this point in the history
  • Loading branch information
ewanharris committed Oct 9, 2023
1 parent 036c180 commit 20592d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/cra-react-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"react-dom": "file:../../node_modules/react-dom",
"react-router-dom": "^6.16.0",
"react-scripts": "^5.0.1",
"typescript": "file:../../node_modules/typescript"
"typescript": "^4.9.4"
},
"scripts": {
"start": "react-scripts start",
Expand Down
2 changes: 1 addition & 1 deletion examples/cra-react-router/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function App() {
{error && <Error message={error.message} />}
<Routes>
<Route path="/" />
<Route path="/users" element={<ProtectedUsers />} />
<Route path="/users" Component={ProtectedUsers} />
</Routes>
</>
);
Expand Down

0 comments on commit 20592d1

Please sign in to comment.