Implement a polyfill for useLayoutEffect · InterviewLane