From 7c10e8b423b99ebcc873c33cda37592cf8abbd44 Mon Sep 17 00:00:00 2001 From: Denis Kruschinski <4989565+kruschid@users.noreply.github.com> Date: Fri, 20 Dec 2024 11:06:41 +0100 Subject: [PATCH] fix(readme): typo in function name --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e999048..b571df7 100644 --- a/README.md +++ b/README.md @@ -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 (
{`The current page is: ${location}`} - setLocation("/somewhere")}>Click to update + navigate("/somewhere")}>Click to update
); };