October 2019
Intermediate to advanced
426 pages
11h 49m
English
This Hook is identical to useEffect, but it only fires after all Document Object Model (DOM) mutations. We can use it as follows:
import { useLayoutEffect } from 'react'useLayoutEffect(didUpdate)
The useLayoutEffect Hook can be used to read information from the DOM.
Finally, we are going to take a look at the last Hook provided by React at the time of writing.
Read now
Unlock full access