Photo by Ferenc Almasi on Unsplash
When writing React components, we always strive to keep optimization in mind. It’s always useful to know when unnecessary re-rendering occurs in our code, especially if we have heavy components in our app.
So let’s ...