1
import React from 'react';
2
import { useDidUpdate } from '@kubed/hooks';
3
import { Button, Group } from '@kubed/components'
5
export default function App() {
6
const [counter, setCounter] = React.useState(0);
7
const [updateCount, setUpdateCount] = React.useState(0);
9
setUpdateCount((updateCount) => updateCount + 1)
14
<p>counter:{counter}</p>
15
<p>updateCount: {updateCount}</p>
17
<Button onClick={() => setCounter((counter) =>counter + 1 )}> counter +1 </Button>