diff --git a/md-docs/1.getting-started.md b/md-docs/1.getting-started.md index a5852a04..a5a72e37 100644 --- a/md-docs/1.getting-started.md +++ b/md-docs/1.getting-started.md @@ -81,7 +81,7 @@ In some cases you might want to initialize the state with a function, for exampl ```tsx const [state, setState] = useRGS("counter", () => - typeof localStorage === "undefined" ? 1 : (localStorage.getItem("counter") ?? 1), + typeof localStorage === "undefined" ? 1 : localStorage.getItem("counter") ?? 1, ); ```