Quantcast
Channel: ReScript Forum - Latest posts
Viewing all articles
Browse latest Browse all 2592

Simple way to convert JSX to DOM

$
0
0

I guess it should run in the browser?

Theoretically you could use many js libraries, which creates dom.

React, solid, voby, xote, hyperscript,… Even jsx-dom should work.

If you are lucky, you can find some bindings for these libraries.

I would say, the easiest way for beginners would be react, since there are official bindings from the rescript developers:

If it should be more lightweight, you can have a look at the jsx docs of rescript to create your own bindings for any other library or build your own lib.
Converters for jsx are fun to implement in rescript.

Take a look at xote for example:

Cheers


Viewing all articles
Browse latest Browse all 2592

Trending Articles