I agree in general, creating components is usually quite bad :) But in the article most of the performance problems come not from it, but using hooks in not the most optimal way
Yes, that's just a sidenote :) However, having state management inside the component and exposing the API through ref resolves the performance concerns.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I agree in general, creating components is usually quite bad :) But in the article most of the performance problems come not from it, but using hooks in not the most optimal way
Yes, that's just a sidenote :) However, having state management inside the component and exposing the API through ref resolves the performance concerns.