We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 941587f commit a3c7429Copy full SHA for a3c7429
‎packages/core/README.md‎
@@ -25,16 +25,16 @@ npm install @siberiacancode/reactuse
25
```
26
27
```tsx
28
-import { useCounter } from '@siberiacancode/reactuse';
+import { useCounter } from "@siberiacancode/reactuse";
29
30
function App() {
31
const counter = useCounter(0);
32
33
return (
34
<div>
35
- <h1>Count: {const.value}</h1>
36
- <button onClick={() => const.inc()}>+1</button>
37
- <button onClick={() => const.dec()}>-1</button>
+ <h1>Count: {counter.value}</h1>
+ <button onClick={() => counter.inc()}>+1</button>
+ <button onClick={() => counter.dec()}>-1</button>
38
</div>
39
);
40
}
0 commit comments