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!
I use version 0.9.1
of reason-react.
I don't have any issue with React.Context, tested https://melange.re/unstable/playground/?language=Reason&code=bW9kdWxlIENQID0gewogIGxldCB0aGVtZUNvbnRleHQgPSBSZWFjdC5jcmVhdGVDb250ZXh0KCJsaWdodCIpOwoKICBpbmNsdWRlIFJlYWN0LkNvbnRleHQ7CiAgbGV0IG1ha2UgPSBSZWFjdC5Db250ZXh0LnByb3ZpZGVyKHRoZW1lQ29udGV4dCk7Cn07CgpbQHJlYWN0LmNvbXBvbmVudF0KbGV0IG1ha2UgPSAoKSA9PiA8ZGl2PiA8Q1AgdmFsdWU9ImxpZ2h0Ij4gPGRpdiAvPiA8L0NQPiA8L2Rpdj47Cg%3D%3D&live=off
Can you provide more details? Closing the issue for now, feel free to keep asking questions thought.
@andywhite37 you can also use external makeProps
with [@@mel.obj]
which will remove the runtime created by let makeProps
in your example.