Skip to content

Comment on Solidjs โ€“ JavaScript UI Library

Comments

Performant - Consistently tops recognized UI speed and memory utilization benchmarks.

๐šŠฬถ๐šœฬถ ฬถ๐š–ฬถ๐šขฬถ ฬถ๐šŒฬถ๐š˜ฬถ๐š–ฬถ๐š™ฬถ๐šžฬถ๐šฬถ๐šŽฬถ๐š›ฬถ ฬถ๐š”ฬถ๐šŽฬถ๐šŽฬถ๐š™ฬถ๐šœฬถ ฬถ๐šฬถ๐š›ฬถ๐šŽฬถ๐šŽฬถ๐šฃฬถ๐š’ฬถ๐š—ฬถ๐šฬถ ฬถ๐š ฬถ๐š‘ฬถ๐š’ฬถ๐š•ฬถ๐šŽฬถ ฬถ๐š•ฬถ๐š˜ฬถ๐šŠฬถ๐šฬถ๐š’ฬถ๐š—ฬถ๐šฬถ ฬถ/ฬถ ฬถ๐šœฬถ๐šŒฬถ๐š›ฬถ๐š˜ฬถ๐š•ฬถ๐š•ฬถ๐š’ฬถ๐š—ฬถ๐šฬถ ฬถ๐šฬถ๐š‘ฬถ๐šŽฬถ ฬถ๐šœฬถ๐š’ฬถ๐šฬถ๐šŽฬถ ฬถ(ฬถ๐š–ฬถ๐šŠฬถ๐šŒฬถ๐š‹ฬถ๐š˜ฬถ๐š˜ฬถ๐š”ฬถ ฬถ๐š™ฬถ๐š›ฬถ๐š˜ฬถ ฬถ๐Ÿธฬถ๐Ÿถฬถ๐Ÿทฬถ๐Ÿปฬถ ฬถ๐š ฬถ๐š’ฬถ๐šฬถ๐š‘ฬถ ฬถ๐™ตฬถ๐š’ฬถ๐š›ฬถ๐šŽฬถ๐šฬถ๐š˜ฬถ๐šกฬถ)ฬถ

It's also not very clear what exactly solidjs is. My understanding is that it's basically React but with a different method to render components?

Otherwise the site is actually impressive and the UX is really good.

EDIT: Sorry this actually seems to be my computer's fault because other sites are slow too, even HN is a bit jittery. Idk if I have too many tabs open.

I can say that the site particularly slows down whenever I'm scrolling and especially when scrolling while an animation plays. Changing tabs is very fast even though there are a lot of animations.

Solid author here. Hmm don't see this on Firefox on Windows or on my Macbook air. From what you are describing it's probably the REPL acting up. I wouldn't use that as a measure of performance.

SolidJS is a UI library, that is basically a reactive state library first, renderer second. It happens to look like React by choice, since it chooses JSX for its flexible composability and React Hooks resemble reactive primitives. Cliff notes are reactivity is independent of components. Components are just functions that run once and wire up granular updates. Then only the things that change ever re-run.

nsonha

it wasn't clear if this API is hook-based like react. There is function called useTransition but it's not indicated as a hook, and then in the playground you just call createSignal in a render function and it magically has it own instance? Does that mean you can't call createSignal outside of a component either?

You can put createSignal anywhere. It isn't hooks based. It's reactive like MobX or Vue. Some of the primitives don't have much meaning outside of a render setting. What sets Solid apart is the rendering is just that. It's just `createEffect`s. We just compile JSX to it. See my React Finland talk: https://www.youtube.com/watch?v=2iK9zzhSKo4

It's interesting you report this website issue, because I know some on the team working on the site are very diligent about testing on various devices. I've highlighted your comment in the SolidJS discord server's #website channel.

SolidJS is a framework at the abstraction level of react, vue, svelte, or marko, with an API that adopts certain philosophies from react. It is an entirely incompatible framework, however, and not just a drop in renderer (though easier to port to from react due to api similarities).

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.