score:2

are functional components converted into class components by react?

there is no “optimized” support for them (functional component) yet because stateless component is wrapped in a class internally. it's same code path.

from a twitter thread by dan abramov.

is there any performance benefits to using functional, rather than class components?

apparently right now there is no performance benefits because react does a lot of things on functional components which decreases performance. read this to gain more understanding.

should i really sacrifice my workflow

i guess not


Related Query

More Query from same tag