Re:Solidjs: Simple and performant reactivity for building us...
by voat on Tuesday April 22, 2025 @10:11PM
(#43768072)
Yep. Solid js stays true to js. A div is literally a div. And you can use Solid without jsx, and used tagged templates if you so desire.
[ Parent
| on HN ]
Re:Solidjs: Simple and performant reactivity for building us...
by dhruvrajvanshi on Wednesday April 23, 2025 @01:56AM
(#43769055)
You can use React without jsx too. JSX is just a very thin wrapper over React.createElemental
``` const h = React.createElement
h('div', { id: 'foo' }, [ h(MyComponent, props) ])
```
Of course the props to divs are a bit different and event listeners/styles can be written inline, but none of this is JSX specific.