reasonml/reason-react

Error: Unbound value ContextProvider.makeProps

digression99 opened this issue · 3 comments

Hi, I'm new to use reason-react. I happened to write a example code in the docs and I attached include React.Context; before my context provider to prevent makeProps issue, and I found it still exists.

Is there any solution to fix this error? Thank you for your help in advance!

Screen Shot 2021-02-08 at 8 18 27 PM

I use version 0.9.1 of reason-react.

Just leaving a note for any poor future visitors - I also ran into this with a much older version of reason-react (^0.9.1). You can workaround this by just implementing your own makeProps function by hand:

image

@andywhite37 you can also use external makeProps with [@@mel.obj] which will remove the runtime created by let makeProps in your example.