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

require melange 4 and udpate tests #836

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 3 additions & 3 deletions ppx/test/react.t
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ Demonstrate how to use the React JSX PPX
// Generated by Melange
'use strict';

var Belt__Belt_List = require("melange.belt/belt_List.js");
var JsxRuntime = require("react/jsx-runtime");
const Belt__Belt_List = require("melange.belt/belt_List.js");
const JsxRuntime = require("react/jsx-runtime");

function X$App(Props) {
return Belt__Belt_List.toArray(Belt__Belt_List.map({
Expand All @@ -52,7 +52,7 @@ Demonstrate how to use the React JSX PPX
})));
}

var App = {
const App = {
make: X$App
};

Expand Down
2 changes: 1 addition & 1 deletion reason-react.opam
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ bug-reports: "https://github.com/reasonml/reason-react/issues"
depends: [
"dune" {>= "3.9"}
"ocaml"
"melange" {>= "3.0.0"}
"melange" {>= "4.0.0"}
"reason-react-ppx" {= version}
"reason" {>= "3.10.0"}
"ocaml-lsp-server" {with-test}
Expand Down
8 changes: 4 additions & 4 deletions test/blackbox-tests/useCallback.t
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
// Generated by Melange
'use strict';

var React = require("react");
const React = require("react");

var cb = React.useCallback((function (a, b) {
const cb = React.useCallback((function (a, b) {
return a + b | 0;
}), []);

Expand All @@ -42,9 +42,9 @@ Using an Uncurried function:
// Generated by Melange
'use strict';

var React = require("react");
const React = require("react");

var cb = React.useCallback((function (a, b) {
const cb = React.useCallback((function (a, b) {
return a + b | 0;
}), []);

Expand Down