← Back to all 2018

Track Inputs for React.useEffect

useEffect runs every time it is called. That's not good for Hooks that fetch data. Fortunately, we can skip useEffect by tracking the index... Assignment Sandbox: https://codesandbox.io/s/react-holiday-day-9-ck1ww

Prev Next