Skip to content

intended usage with react? #43

Answered by TheSpyder
ghost asked this question in Q&A
Nov 2, 2021 · 3 comments · 3 replies
Discussion options

You must be logged in to vote

The ReScript team has been very clear that they would prefer everyone not use bindings, or make their own, for everything DOM. The return type of currentTarget, and many other methods, is an open object:
https://github.com/rescript-lang/rescript-react/blob/c3017ec4bbce5847c3b2da8d2d536450a3e2fd6d/src/ReactEvent.resi#L46-L47

So no, unfortunately it will never be possible for this library to play nicely with rescript-react.

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@illusionalsagacity
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@tom-sherman
Comment options

@TheSpyder
Comment options

Answer selected by TheSpyder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants