React useCallback Lesson — Reference Chaining Issue

Audy Tanudjaja
6 min readJul 6, 2022
cover image
Photo by Aida L on Unsplash

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:

  1. There will be a constraint of X maximum images…

--

--