DEV Community

Discussion on: Converting a React Component to SolidJS

Collapse
 
mbarzeev profile image
Matti Bar-Zeev

This is where SolidJS shines over React IMO (at least one of the main places).
The component function is called only once. There will be no unnecessary renders.
No need for ref. You know exactly the state of your component as it only reacts to changes and not renders in its entirety.
This is freaking awesome, and sooooo simple to reason about.