Skip to content

Commit

Permalink
fix(readme): typo in function name
Browse files Browse the repository at this point in the history
  • Loading branch information
kruschid committed Dec 20, 2024
1 parent 48b63a9 commit 7c10e8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,12 +248,12 @@ By default, it uses `useBrowserLocation` under the hood, though you can configur
import { useLocation } from "wouter";

const CurrentLocation = () => {
const [location, setLocation] = useLocation();
const [location, navigate] = useLocation();

return (
<div>
{`The current page is: ${location}`}
<a onClick={() => setLocation("/somewhere")}>Click to update</a>
<a onClick={() => navigate("/somewhere")}>Click to update</a>
</div>
);
};
Expand Down

0 comments on commit 7c10e8b

Please sign in to comment.