Better HN
topnewbestaskshowjobs
Log inSign up

aquaductape

2 karma · joined Feb 15, 2023 (3y ago) · 3 submissions

Submissions

comment 3y ago · link · parent

SolidJS is pretty fun, has JSX, global stores, but with better runtime performance than Svelte

comment 3y ago · link · parent

Be careful on spreading the statement "easy for React users", yes that's true for using JSX, but for React developers trying out SolidJS, make sure not to desctructure props, get rid of rerending function mental model, components only runs ONCE so reactivity works by tracking reactive elements(signals/stores) inside JSX or effects(createEffect, createMemo ect), that means no early returns. If a React developer (I've witnessed this with Twitch streamers), jumps into SolidJS blind without taking tutorial, they get lost into rerender mental model.

comment 3y ago · link · parent

Svelte has largest component size compared to other frameworks such as Vue, React and Solid, so it quickly grows, even on a small webapp. Because Inferno is VDOM, I'm assuming it has a smaller component size compared to Solid.