Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for React Hooks under a new React module namespace #351

Merged
merged 44 commits into from
Mar 29, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
ebc14e1
add some hooks stuff
rickyvetter Feb 7, 2019
b940fe3
element binding
rickyvetter Feb 7, 2019
00c5a19
upgrade react
rickyvetter Feb 7, 2019
c852e62
move ppx into this repo
rickyvetter Feb 11, 2019
037447a
move ppx into this repo
rickyvetter Feb 11, 2019
bfc68e9
cleanup header
rickyvetter Feb 8, 2019
6c7e89d
better esy isolation
rickyvetter Feb 11, 2019
77a9e84
better fragment handling
rickyvetter Feb 11, 2019
dff0272
better names without config
rickyvetter Feb 14, 2019
584db4c
Add React.string and React.array. (#332)
cknitt Feb 12, 2019
9308fdc
Added React.memo. (#333)
cknitt Feb 14, 2019
6bc7e26
displayName tweaks
rickyvetter Feb 14, 2019
03a8bd4
sync over the function wraping change
rickyvetter Feb 14, 2019
3b7b89d
resolve ref thing in the same way we resolve all of our other curryin…
rickyvetter Feb 14, 2019
ceb0418
name components correctly in nested modules
rickyvetter Feb 15, 2019
5f49925
Revert "resolve ref thing in the same way we resolve all of our other…
rickyvetter Feb 15, 2019
e0b4743
allow forwardRef and props and options without the record syntax
rickyvetter Feb 15, 2019
afb624a
Add React.null. (#337)
cknitt Feb 18, 2019
8837287
Loosen react dependency. (#335)
cknitt Feb 18, 2019
fa464cf
Use bs.get/bs.set for ref. (#331)
cknitt Feb 19, 2019
2c4b905
useUrl hook for router
cknitt Feb 17, 2019
b6a18fb
useLayoutEffect0
cknitt Feb 18, 2019
4c1c2f8
Add React.Context.Provider.
cknitt Feb 16, 2019
f07fc59
Extract router and useRecordApi into separate modules.
cknitt Feb 19, 2019
77f3c90
sync in some changes from fb
rickyvetter Mar 5, 2019
031ca40
build
rickyvetter Mar 5, 2019
bc85fff
Fix type of Context.provider.
cknitt Mar 6, 2019
9f3e706
fragment, uncurry, forwardRef
rickyvetter Mar 6, 2019
8036db7
Fix useCallback: intput -> input
cknitt Mar 7, 2019
aa535f8
more syncing - imperative hook, routing, compat
rickyvetter Mar 13, 2019
404baf2
sync reactdomre
rickyvetter Mar 13, 2019
81e0d44
ReasonReactRouter: workaround for https://github.com/BuckleScript/buc…
cknitt Mar 14, 2019
93faddd
ReasonReactRouter: check if url has changed
cknitt Mar 14, 2019
3fa1da2
Make Fragment children non-optional.
cknitt Mar 8, 2019
be90a74
constrain return type of useMemo
rickyvetter Mar 14, 2019
ab15ee7
fix tests
rickyvetter Mar 14, 2019
41d2e8b
Add test script that Ricky posted in Discord
phated Mar 14, 2019
edc5d28
Begin refactoring & annotating the PPX
phated Mar 19, 2019
65bc75b
More refactor updates
phated Mar 19, 2019
605331c
Even more things!
phated Mar 19, 2019
30e5b49
remove omp as dep
rickyvetter Mar 21, 2019
40f54a6
router changes, remove omp, yarn changes
rickyvetter Mar 26, 2019
4369b58
fix deps, clean up recommendations
rickyvetter Mar 26, 2019
0b4140c
comments
rickyvetter Mar 27, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@
/node_modules*
finalOutput/*.js
.merlin
.install
/lib/bs/
/lib/ocaml/
*.log
.bsb.lock
/src/*.js
_esy
_build
*.install

# Editor
/.idea/
Binary file added _build/default/jsx_ppx/reactjs_jsx_ppx_v3.exe
Binary file not shown.
1 change: 1 addition & 0 deletions dune-project
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(lang dune 1.6)
33 changes: 33 additions & 0 deletions esy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"name": "reason-react",
"version": "0.5.3",
"description": "React bindings for Reason",
"author": "",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/reasonml/reason-react.git"
},
"homepage": "https://reasonml.github.io/reason-react/",
"devDependencies": { "@opam/merlin": "*", "ocaml": "~4.2.0" },
"dependencies": {
"@opam/dune": "*",
"@opam/merlin-extend": " >= 0.3",
"@opam/ocamlfind": "*",
"@opam/reason": "3.4.0",
"@opam/result": "*",
"ocaml": "~4.2.0"
},
"bin": {
"reactjs_jsx_ppx_v3.exe":
"./_build/default/jsx_ppx/reactjs_jsx_ppx_v3.exe"
},
"esy": {
"buildsInSource": "_build",
"build": [ [ "dune", "build", "-p", "reactjs_jsx_ppx_v3" ] ],
"install": [ [ "esy-installer", "reactjs_jsx_ppx_v3.install" ] ]
},
"scripts": {
"test": "esy x ocamlc -dsource -ppx reactjs_jsx_ppx_v3 -pp 'refmt --print binary --parse re' -impl './jsx_ppx/test.re'"
}
}
3 changes: 3 additions & 0 deletions esy.lock/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

# Set eol to LF so files aren't converted to CRLF-eol on Windows.
* text eol=lf
3 changes: 3 additions & 0 deletions esy.lock/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

# Reset any possible .gitignore, we want all esy.lock to be un-ignored.
!*
Loading