Sign in
Log inSign up
Travis Waith-Mair

42 likes

·

11.1K reads

8 comments

Aashiq Ahmed
Aashiq Ahmed
May 29, 2022

It would be great if u explain the need of now destructuring props in solidjs , from what i know , they are using some proxies to track down it , so ...

reference - docs.solidjs.com/guides/getting-started-wi…

2
·
·1 reply
Travis Waith-Mair
Travis Waith-Mair
Author
·Aug 14, 2022

To make accessing prop values work with the reactivity, Solid, under-the-hood, uses proxies with getters and setters. This means that if you access a reactive value outside of a solid.js tracking scope, the reactivity is broken: solidjs.com/tutorial/props_defaults

1
·
Brad Oliver
Brad Oliver
Aug 14, 2022

Seems much EASIER than React IMO - your dropping some of those concepts that seemed to me not only unnecessary but maybe uncalled for and solid.js seems to be the answer to some of those.

I'm digging deeper into this - although React has retrained my brain in many concepts (primarily to think in jsx / componential separation) I think solid.js will solidify some of these concepts into a cleaner structure within the code. We shall see.

I vote MORE Solid.js write ups like a part two of this one!! Like this if you agree!! Thanks so much for this! MORE content like this please - your way of breaking it down in comparisons' is much easier to grasp the concepts here and I'm diggin it!

2
·
·1 reply
Travis Waith-Mair
Travis Waith-Mair
Author
·Aug 14, 2022

Thanks so much. I would love to do more. Look out for it soon hopefully

·
Diego Ballesteros (Relatable Code)
Diego Ballesteros (Relatable Code)
May 13, 2022

I've been interested in checking out Solid more and more. Thanks for sharing!

1
·
Iain Simmons
Iain Simmons
May 20, 2022

Great article! I love Solid.js and hope it skyrockets in popularity and usage.

Just FYI your first example in the Gotchas section is missing the ref.

It should be:

<input ref={myInput} />
1
·
·1 reply
Travis Waith-Mair
Travis Waith-Mair
Author
·May 25, 2022

Thank you, It is fixed in the example

1
·
Vishwajeet Raj
Vishwajeet Raj
Jun 8, 2022

Didn't know it'd be that familiar to react.

·