Solid – A declarative JavaScript library for building user interfaces
1–10 of 178 posts
Re: Solid – A declarative JavaScript library for building user interfaces
#2Re: Solid – A declarative JavaScript library for building user interfaces
#3If you're wondering how this is different from Svelte, the author has a Medium post on it[0].
[0]: https://medium.com/@ryansolid/javascript-ui-compilers-compar...
Re: Solid – A declarative JavaScript library for building user interfaces
#4Essentially react without virtual dom?
The update cycle is the exact opposite to React Hooks. With React your Component needlessly re-renders over and over and your Hook dependencies explicitly whitelist change. With Solid your Comoponent is a basic function that executes once closing over state with it's Hooks, which are the only thing that run over and over as needed when state changes.
Re: Solid – A declarative JavaScript library for building user interfaces
#5Re: Solid – A declarative JavaScript library for building user interfaces
#6Re: Solid – A declarative JavaScript library for building user interfaces
#7There is already a project named Solid led by Tim Berners-Lee: https://solid.mit.edu
Re: Solid – A declarative JavaScript library for building user interfaces
#8Does the state thing have the same gotchas as react hooks? Not a big fan of how that's impl'd in react.
Re: Solid – A declarative JavaScript library for building user interfaces
#9There is already a project named Solid led by Tim Berners-Lee: https://solid.mit.edu
Re: Solid – A declarative JavaScript library for building user interfaces
#10Can 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.
That being said for the same reason. No React Compat. The library doesn't work even remotely similar. People have used them together, but this is no straight swap in.