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 0d5580f commit dae7253Copy full SHA for dae7253
md-docs/1.getting-started.md
@@ -90,7 +90,7 @@ In some cases you might want to initialize the state with a function, for exampl
90
91
```tsx
92
const [state, setState] = useRGS<number>("counter", () =>
93
- typeof localStorage === "undefined" ? 1 : (localStorage.getItem("counter") ?? 1),
+ typeof localStorage === "undefined" ? 1 : localStorage.getItem("counter") ?? 1,
94
);
95
```
96
0 commit comments