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.

Passionate about Clean code and SOLID Architecture