We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 995562a commit 9de6342Copy full SHA for 9de6342
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
81
82
```tsx
83
const [state, setState] = useRGS<number>("counter", () =>
84
- typeof localStorage === "undefined" ? 1 : (localStorage.getItem("counter") ?? 1),
+ typeof localStorage === "undefined" ? 1 : localStorage.getItem("counter") ?? 1,
85
);
86
```
87
0 commit comments