Skip to content

Commit 9acff70

Browse files
committed
README: update ReactNative zero-cost bindings setup with Reason React hooks
1 parent eb3737c commit 9acff70

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

‎README.md‎

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ If you use this bindings from the git repo, be sure to use
1818
```js
1919
{
2020
// ...
21-
"bsc-flags": ["-bs-super-errors"],
2221
"bs-dependencies": [
2322
// BsReactNative, current "stable" bindings
2423
"bs-react-native/bs-react-native",
@@ -45,12 +44,12 @@ risk._
4544

4645
## ⚠️ ReactNative zero-cost bindings setup with Reason React hooks
4746

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
47+
Things you need
48+
49+
- `package.json` dep: `"bs-platform": "^5.0.1-beta.1",`
50+
- `package.json` dep:
51+
`"reason-react": "https://github.com/reasonml/reason-react.git#0.7.0",`
52+
- `bsconfig.json`: `"reason": { "react-jsx": 3 }`
5453

5554
---
5655

0 commit comments

Comments
 (0)