Skip to content

Commit a3c7429

Browse files
committed
main 🧊 update readme
1 parent 941587f commit a3c7429

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎packages/core/README.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@ npm install @siberiacancode/reactuse
2525
```
2626

2727
```tsx
28-
import { useCounter } from '@siberiacancode/reactuse';
28+
import { useCounter } from "@siberiacancode/reactuse";
2929

3030
function App() {
3131
const counter = useCounter(0);
3232

3333
return (
3434
<div>
35-
<h1>Count: {const.value}</h1>
36-
<button onClick={() => const.inc()}>+1</button>
37-
<button onClick={() => const.dec()}>-1</button>
35+
<h1>Count: {counter.value}</h1>
36+
<button onClick={() => counter.inc()}>+1</button>
37+
<button onClick={() => counter.dec()}>-1</button>
3838
</div>
3939
);
4040
}

0 commit comments

Comments
 (0)