import { useEffect } from "react";

export default function useFocus(ref) {
  useEffect(() => {
    console.log('FOOOCUUUUSSSS did !', ref.current)
    ref.current.focus()
  }, [ref])
}