React useCallback Lesson — Reference Chaining Issue
6 min readJul 6, 2022
Imagine you are building a web app to render images from Lorem Picsum and users can navigate to the next and previous images by clicking the navigation buttons. The web app will only render 1 image at a time and a text to show the author of the image itself. On top of that, there are a couple of requirements to build this app:
- There will be a constraint of X maximum images…