-
Notifications
You must be signed in to change notification settings - Fork 348
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0ccff71
commit 4d81337
Showing
37 changed files
with
4,528 additions
and
2,352 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
$ ../ppx.sh --output re input.re | ||
let fragment = foo => | ||
[@bla] ReactDOM.createElement(React.jsxFragment, [|foo|]); | ||
[@bla] React.DOM.createElement(React.jsxFragment, [|foo|]); | ||
let poly_children_fragment = (foo, bar) => | ||
ReactDOM.createElement(React.jsxFragment, [|foo, bar|]); | ||
React.DOM.createElement(React.jsxFragment, [|foo, bar|]); | ||
let nested_fragment = (foo, bar, baz) => | ||
ReactDOM.createElement( | ||
React.DOM.createElement( | ||
React.jsxFragment, | ||
[|foo, ReactDOM.createElement(React.jsxFragment, [|bar, baz|])|], | ||
[|foo, React.DOM.createElement(React.jsxFragment, [|bar, baz|])|], | ||
); | ||
let nested_fragment_with_lower = foo => | ||
ReactDOM.createElement( | ||
React.DOM.createElement( | ||
React.jsxFragment, | ||
[| | ||
ReactDOM.jsx( | ||
React.DOM.jsx( | ||
"div", | ||
([@merlin.hide] ReactDOM.domProps)(~children=foo, ()), | ||
([@merlin.hide] React.DOM.domProps)(~children=foo, ()), | ||
), | ||
|], | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.