Something's weird with the playground widget on this landing page. I wanted to make the code section bigger to take a better look but when I drag the slider it just goes up, showing a little sliver of code (around 2 lines). Doesn't make a very good first impression.
Solidjs – JavaScript UI Library
31–40 of 92 posts
Re: Solidjs – JavaScript UI Library
#32Earlier quoted context omitted.
Properties are proxies, but getters should be used for everything else. Why weren't getters also used for properties?
Props are getters. They are shallow. It are stores that are actual ES proxies. I think the term is used loosely here to suggest that they are wrappers on top of objects. It isn't so much about the specifics but to explain why destructuring should be avoided.
const valueGetter = () => props.value;Re: Solidjs – JavaScript UI Library
#33Something's weird with the playground widget on this landing page. I wanted to make the code section bigger to take a better look but when I drag the slider it just goes up, showing a little sliver of code (around 2 lines). Doesn't make a very good first impression.
I'm confident that's a browser native feature and not something with their code. Are you on Firefox?
Re: Solidjs – JavaScript UI Library
#34Earlier quoted context omitted.
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 primiti…
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?
Re: Solidjs – JavaScript UI Library
#35this made me nostalgic for angular 1.
Re: Solidjs – JavaScript UI Library
#36Something's weird with the playground widget on this landing page. I wanted to make the code section bigger to take a better look but when I drag the slider it just goes up, showing a little sliver of code (around 2 lines). Doesn't make a very good first impression.
Re: Solidjs – JavaScript UI Library
#37Re: Solidjs – JavaScript UI Library
#38Re: Solidjs – JavaScript UI Library
#39Earlier quoted context omitted.
Props are getters. They are shallow. It are stores that are actual ES proxies. I think the term is used loosely here to suggest that they are wrappers on top of objects. It isn't so much about the specifics but to explain why destructuring should be avoided.
Yes, by getters I was trying to refer to these wrappers. const valueGetter = () => props.value;
Re: Solidjs – JavaScript UI Library
#40Heck of a library, and its creator, Ryan Carniato, is a very smart engineer who works on both Marko[0] and solidjs. He's really patient and answers my random questions on Twitter pretty reliably, I have to say I appreciate it! The performance that SolidJS eeks out of the DOM is really next level. I think it could use a small augment in the docs about migrating from React to SolidJS, but all around the project is very…