import { useEffect, useRef } from 'preact/hooks' export default function SearchBox() { const dialog = useRef(null) useEffect(() => { dialog.current?.addEventListener('click', (event) => { if (event.target === dialog.current) { dialog.current?.close() } }) }, []) return ( <>

Machines

  • machine 1
  • machine 2
  • machine 3

Projets

  • projet 1
  • projet 2
  • projet 3

Blog

  • news 1
  • news 2
  • news 3

Usager

  • Alice
  • Bob
  • ChloĆ©
) }