4 ms·
Isn't SolidJS supposed to be like React (in that it has JSX, hooks etc) but without the VDOM? So I guess that would sidestep your point #2, but curious to hear
by satvikpendem 4y ago
Isn't SolidJS supposed to be like React (in that it has JSX, hooks etc) but without the VDOM? So I guess that would sidestep your point #2, but curious to hear your thoughts on it.
Personally I don't use Svelte, Vue, Solid etc simply due to the (lack of) library support compared to React. For example, I wanted to do something in 3D the other day and reached for react-three-fiber, there simply isn't something comparable in the non-React world.
- JadedBlueEyes 4y ago> reached for react-three-fiber, there simply isn't something comparable in the non-React world. This came out a year ago now. https://svelthree.dev/ https://svelthree.dev/ https://github.com/vatro/svelthree https://github.com/vatro/svelthree Svelte, Vue, etc. all have plenty of awesome libraries - you just need to be aware of them.
- peterhunt 4y agoSolidJS also sacrifices expressivity for performance (ie you need to do contortions like this[1] to build dynamic lists), so I prefer React to it. However, I like its approach more than Svelte because there’s less of a DSL to learn. [1] https://www.solidjs.com/tutorial/flow_for https://www.solidjs.com/tutorial/flow_for
- leetrout 4y ago> For example, I wanted to do something in 3D the other day and reached for react-three-fiber, there simply isn't something comparable in the non-React world. Respectfully, that is because you dont _need_ anything other than ThreeJS in the other frameworks. I do find it interesting that it says it performs faster due to reacts scheduler.
- satvikpendem 4y ago> Respectfully, that is because you dont _need_ anything other than ThreeJS in the other frameworks. Not really, ThreeJS is imperative, react-three-fiber is declarative. I use the latter for the same reason I use React over jQuery, I don't have to mess around with appending nodes, I can lay out my view declaratively and have the framework fill in the rest.
- scq 4y agoYou don't _need_ react-three-fiber to embed ThreeJS in React component either. The point of react-three-fiber is that it allows you to use React's declarative rendering model to render your scene.