You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 56ff2ab
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,6 +43,17 @@ Did you notice that this way, you can use both bindings to slowly migrate?
43
43
_Next ReactNative zero-cost bindings are still WIP, so use carefully at your own
44
44
risk._
45
45
46
+
## ⚠️ ReactNative zero-cost bindings setup with Reason React hooks
47
+
48
+
Things you need to
49
+
- reason-react master/hooks branch (the branch has been merged into master)
50
+
- bs-platform 5.0.0
51
+
- remove `"reason": { "react-jsx": 2 }` from your `bsconfig.json`
52
+
- add `"ppx-flags": ["./node_modules/reason-react/_build/default/jsx_ppx/reactjs_jsx_ppx_v3.exe"]` in your `bsconfig.json` (this is because bs-platform 5 doesn't have react-jsx 3 in it
53
+
- add into all you react files `[@bs.config {jsx: 3}];` at the top
0 commit comments