For measuring or synchronizing layout, useLayoutEffect is the proper Hook. useInsertionEffect exists for style injection.