Skip to content

Commit 56ff2ab

Browse files
authored
README: add notes for reason-react hook hipsters
1 parent 42fa3f0 commit 56ff2ab

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

‎README.md‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,17 @@ Did you notice that this way, you can use both bindings to slowly migrate?
4343
_Next ReactNative zero-cost bindings are still WIP, so use carefully at your own
4444
risk._
4545

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
54+
55+
---
56+
4657
## Getting Started
4758

4859
Check our

0 commit comments

Comments
 (0)