Live data from Hacker News

Solid – A declarative JavaScript library for building user interfaces

github.com

21–30 of 178 posts

Re: Solid – A declarative JavaScript library for building user interfaces

#21
post #15

Earlier quoted context omitted.

Fair enough. Keep in mind I've been working on this for close to 5 years. Basically around the time I realized KnockoutJS was going to die out and React was for good reason going to win. Here is an article about why this library exists: https://dev.to/ryansolid/why-solidjs-do-we-need-another-js-u...

Don't get me wrong, every technical endeavor is fun and beneficial for the individual. YOu just have higher chances of staring a unicorn co, than creating a js library that is widely adopted.

You could think of a library like this as an argument in a conversation about frontend. One that is demonstrated and backed by an actual implementation. As such, I'd say it is valuable regardless of npm download counts.

I'm sure he could also have spent that time at $company, helping to plumb gossip and cat memes a bit more efficiently. I'm sure that would have been more lucrative as well.

Re: Solid – A declarative JavaScript library for building user interfaces

#22
post #6

There is already a project named Solid led by Tim Berners-Lee: https://solid.mit.edu

Note that that website is no longer the project home - it has spun off from MIT: https://solidproject.org/

(Disclosure: I work at Inrupt, the company started by Tim Berners-Lee to support the project's adoption.)

Re: Solid – A declarative JavaScript library for building user interfaces

#23
Good thing this came about. I looked through various JS frameworks for web components a year or so back. I now can't remember did I find Solid had web component support then. I see it has this support now, with Solid Elements. I remember reading Solid articles at the time from Ryan's blog and being impressed. Now it's time to take another look.

Also, I see it's small in size and ES module friendly. Very nice.

Re: Solid – A declarative JavaScript library for building user interfaces

#24
post #20

Earlier quoted context omitted.

Dude, just let him have his fun and stop with the needless negativity. You don't know what the future holds and being rude for the sake of being rude, says quite a bit about you as a person.

I don't think I was being rude in any way. I agree that it is fun. But then its a slim chance that its going to be widely adopted. how come bringing that up is rude?

Don't worry I didn't find the initial comment rude. I get what you are saying and I respect not everyone has time to read a 9 min article. Just know that I'm very aware of it and reflect on it in that article and a lot of writing on Solid.

Re: Solid – A declarative JavaScript library for building user interfaces

#25
post #8

Can you use react components with it? All the libraries of beautiful components are the main reason why I use react. Like I know you can but with cross component comms and stuff. Does the state thing have the same gotchas as react hooks? Not a big fan of how that's impl'd in react.

No Hook Rules. Hooks are an amazing feat by the React team as they basically come so close to emulating the behavior here with running through top-down VDOM reconciliation. But they can't be nested etc.. This reactive approach is similar to MobX or Vue Composition API and doesn't have those constraints. That being said for the same reason. No React Compat. The library doesn't work even remotely similar. People have u…

Might be a good feature. One idea might be a standard way of wrapping a react component so that it uses an embedded iframe / postmessage to post messages back and forth with solid. Tho personally I would like to see this approach to managing state win: https://github.com/colshacol/storage-changed

Re: Solid – A declarative JavaScript library for building user interfaces

#26
post #11

If your library/framework/etc's goal is to make life slightly better, just don't do it. This just looks like React.

Please never listen to toxic negative comments like this that try to convince people that they shouldn't be experimenting and creating new things.

Re: Solid – A declarative JavaScript library for building user interfaces

#27
post #11

If your library/framework/etc's goal is to make life slightly better, just don't do it. This just looks like React.

I mean, Preact exists and is somewhat widely adopted, and it's literally just React but with a smaller bundle size.

Re: Solid – A declarative JavaScript library for building user interfaces

#28

Good thing this came about. I looked through various JS frameworks for web components a year or so back. I now can't remember did I find Solid had web component support then. I see it has this support now, with Solid Elements. I remember reading Solid articles at the time from Ryan's blog and being impressed. Now it's time to take another look. Also, I see it's small in size and ES module friendly. Very nice.

Web Components were what originally led me to keeping the Component side light in Solid, which eventually influenced some of optimizations in that area. I hope you find things have progressed nicely in the last year.

Re: Solid – A declarative JavaScript library for building user interfaces

#29

Earlier quoted context omitted.

No Hook Rules. Hooks are an amazing feat by the React team as they basically come so close to emulating the behavior here with running through top-down VDOM reconciliation. But they can't be nested etc.. This reactive approach is similar to MobX or Vue Composition API and doesn't have those constraints. That being said for the same reason. No React Compat. The library doesn't work even remotely similar. People have u…

Might be a good feature. One idea might be a standard way of wrapping a react component so that it uses an embedded iframe / postmessage to post messages back and forth with solid. Tho personally I would like to see this approach to managing state win: https://github.com/colshacol/storage-changed

Solid doesn't re-render Components over and over.. so integrating React is as simple as wrapping a `createEffect` calling `React.render` on a ref. The other way around is a bit harder, but been at this for a while here is a codesandbox with a HOC for that: https://codesandbox.io/s/solid-react-hoc-8m2yd

If anything there is just so much to document.

Re: Solid – A declarative JavaScript library for building user interfaces

#30

Earlier quoted context omitted.

Might be a good feature. One idea might be a standard way of wrapping a react component so that it uses an embedded iframe / postmessage to post messages back and forth with solid. Tho personally I would like to see this approach to managing state win: https://github.com/colshacol/storage-changed

Solid doesn't re-render Components over and over.. so integrating React is as simple as wrapping a `createEffect` calling `React.render` on a ref. The other way around is a bit harder, but been at this for a while here is a codesandbox with a HOC for that: https://codesandbox.io/s/solid-react-hoc-8m2yd If anything there is just so much to document.

Any comment on that storage-changed lib? I think that's a massively underrated abstraction for high level state / comms. I want it to be more popular. :)
Post reply on HN