Note that Solid has h
(hyperscript) API that can be used here instead of React API. It won’t be as fast for during setup, but after setup it should be as fast as regular Solid JSX.
Example code is something like:
const view = h('div', [
h('p', h('span', 'Hello'))
], {style: "color: red;"})
(I didn’t verify if that works, but you get the idea).
So you can at least make it output h
-compatible code. You might have to import it and re-export as createElement
.