yes, Akshay you are absolutely correct.

Here are 2 things to consider.
1. nanoid() is by default very efficient so that shouldn’t be much of an issue.
2. If we want to avoid this and make it even faster we can generate a list of random id when data changes and re-use it in the following re-renders.

Software Engineer | https://www.mohammadfaisal.dev/

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store