
SolidJS Has a Free Reactive Framework That Is Faster Than React Will Ever Be
React re-renders entire component trees. SolidJS updates only the exact DOM nodes that changed — no virtual DOM, no diffing, no wasted work. The Speed Difference React: Component changes → re-run entire function → diff virtual DOM → patch real DOM Solid: Signal changes → update exact DOM node → done // React: this ENTIRE function re-runs on every count change function Counter () { const [ count , setCount ] = useState ( 0 ); console . log ( " React: I run on EVERY update " ); return < button onClick = { () => setCount ( c => c + 1 ) } > { count } </ button >; } // Solid: this function runs ONCE, ever function Counter () { const [ count , setCount ] = createSignal ( 0 ); console . log ( " Solid: I run ONCE, at creation " ); return < button onClick = { () => setCount ( c => c + 1 ) } > { count () } </ button >; } In Solid, the component function is a setup function, not a render function. Core Primitives Signals (State) import { createSignal } from " solid-js " ; const [ name , setName ]
Continue reading on Dev.to React
Opens in a new tab



