Using Rescript with Preact?

Is it possible to write bindings for Preact to work with Rescript? Since the React bindings are a library and not built into the language it seems like this would be doable.

I’m new to Rescript, so let me anyone would like more details about my question.

This is not possible because the ReScript compiler hasn’t option for customizing jsx factory yet.

A possible option for now is to use preact compat.

Technically it’s possible if you map your Preact bindings to the React namespace and don’t include rescript-react in your deps. :raising_hand_man:

Not sure how ergonomic it will be on the long run though, and it’s probably confusing having React instead of Preact.