First commit

This commit is contained in:
Lucien Astié 2024-08-08 22:21:01 +02:00
commit 48866cc6ab
20 changed files with 6301 additions and 0 deletions

7
app/[id]/forceUpdate.tsx Normal file
View file

@ -0,0 +1,7 @@
'use client'
import { useState } from 'react'
export default function UseForceUpdate() {
const [value, setValue] = useState(0); // integer state
return () => setValue(value => value + 1); // update state to force render
}