Open in app
Mohammad Faisal
817 Followers
About

Sign in

817 Followers
About
Open in app
Mohammad Faisal

Mohammad Faisal

·Mar 6

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.

Good tips Mohammad.
4
1

Akshay Ankur

More from Mohammad Faisal

Passionate about Clean code and SOLID Architecture

More From Medium

How to Use React Hook Form with TypeScript

Mohammad Faisal in JavaScript in Plain English

How to Access Private S3 Buckets Securely

Mohammad Faisal in JavaScript in Plain English

Applying the Open-Closed Principle To Write Clean React Components

Mohammad Faisal in Better Programming

11 Ways to Improve Your Technical Resume

Mohammad Faisal in JavaScript in Plain English

How To Boost the SEO of Your React App

Mohammad Faisal in Better Programming

How To Improve Rendering Performance in a 1,000-Item React List

Mohammad Faisal in Better Programming

Handle Push Notifications in React

Mohammad Faisal in JavaScript in Plain English

Starting Career With Android was a Bad Idea

Mohammad Faisal in Dev Genius

About

Help

Legal

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