Max Abrams
Sep 6, 2022

--

There is no state update in the useEffect there. That is an action on DOM directly as you're accessing via window key.

--

--

Max Abrams
Max Abrams

Written by Max Abrams

SciFi, Cosmology and Beyond : Maker of Things / Coder of Bits / Human -- PS: My views only. Not work-related.

Responses (1)