useForceUpdate forces the component to re-render.
1import React from 'react';2import { useForceUpdate } from '@kubed/hooks';3import { Button, Group } from '@kubed/components'4 5export default function App() {6 const update = useForceUpdate();7 8 return (9 <div>10 <p>Time:{Date.now()}</p>11 <Group spacing="xl">12 <Button onClick={() => update()}>update</Button>13 </Group>14 </div>15 );16}17 18
1function useForceUpdate(): () => void