Javascript – When will the useLayoutEffect hook callback be triggered?
I have an question about when will the useLayoutEffect callback be triggered and when will the screen be drawn. Consider the following code: export default function CompA() { const [count, setCount] = useState(0); useLayoutEffect(() => { // I'll debug here…