Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// Generated by BUCKLESCRIPT VERSION 4.0.18, PLEASE EDIT WITH CARE
'use strict';
var ReactDOMRe = require("reason-react/src/ReactDOMRe.js");
var ReasonReact = require("reason-react/src/ReasonReact.js");
var ApolloProvider = require("reason-apollo/src/ApolloProvider.bs.js");
var App$ReactTemplate = require("./App.bs.js");
var Client$ReactTemplate = require("./Client.bs.js");
ReactDOMRe.renderToElementWithId(ReasonReact.element(undefined, undefined, ApolloProvider.make(Client$ReactTemplate.instance, /* array */[ReasonReact.element(undefined, undefined, App$ReactTemplate.make(/* array */[]))])), "root");
/* Not a pure module */
'use strict';
var App = require("./view/App.bs.js");
var Curry = require("bs-platform/lib/js/curry.js");
var Store = require("./services/Store.bs.js");
var ReactDOMRe = require("reason-react/src/ReactDOMRe.js");
var ReasonReact = require("reason-react/src/ReasonReact.js");
ReactDOMRe.renderToElementWithId(ReasonReact.element(/* None */0, /* None */0, Curry._1(Store.make, (function (data, url, updateStore) {
return ReasonReact.element(/* None */0, /* None */0, App.make(data, url, updateStore, /* array */[]));
}))), "index");
/* Not a pure module */
'use strict';
var Page = require("./Page.bs.js");
var ReactDOMRe = require("reason-react/src/ReactDOMRe.js");
var ReasonReact = require("reason-react/src/ReasonReact.js");
ReactDOMRe.renderToElementWithId(ReasonReact.element(undefined, undefined, Page.make("Hello!", /* array */[])), "index");
/* Not a pure module */
import * as ReactDOMRe from "reason-react/src/ReactDOMRe.js";
import * as ReasonReact from "reason-react/src/ReasonReact.js";
import * as App$WithParcel from "./App.bs.js";
require("./index.css");
ReactDOMRe.renderToElementWithId(ReasonReact.element(undefined, undefined, App$WithParcel.make(/* array */[])), "root");
export {
}
/* Not a pure module */
function render() {
toggle[0] = !toggle[/* contents */0];
var match = toggle[/* contents */0];
return ReactDOMRe.renderToElementWithId(ReasonReact.element(undefined, undefined, RetainedPropsExample.make(match ? "Hello!" : "Goodbye", /* array */[])), "index");
}
import * as ReactDOMRe from "reason-react/src/ReactDOMRe.js";
import * as ReasonReact from "reason-react/src/ReasonReact.js";
import * as App$WithWebpack from "./App.bs.js";
require("./index.css");
ReactDOMRe.renderToElementWithId(ReasonReact.element(undefined, undefined, App$WithWebpack.make(/* array */[])), "root");
export {
}
/* Not a pure module */
// Generated by BUCKLESCRIPT VERSION 4.0.8, PLEASE EDIT WITH CARE
'use strict';
var ReactDOMRe = require("reason-react/src/ReactDOMRe.js");
var ReasonReact = require("reason-react/src/ReasonReact.js");
var Component1$ReactTemplate = require("./Component1.bs.js");
var Component2$ReactTemplate = require("./Component2.bs.js");
ReactDOMRe.renderToElementWithId(ReasonReact.element(undefined, undefined, Component1$ReactTemplate.make("Hello! Click this text.", /* array */[])), "index1");
ReactDOMRe.renderToElementWithId(ReasonReact.element(undefined, undefined, Component2$ReactTemplate.make("Hello!", /* array */[])), "index2");
/* Not a pure module */
// Generated by BUCKLESCRIPT VERSION 2.1.0, PLEASE EDIT WITH CARE
'use strict';
import * as RechatApp from "./RechatApp.js";
import * as ReactDOMRe from "reason-react/src/ReactDOMRe.js";
import * as ReasonReact from "reason-react/src/ReasonReact.js";
ReactDOMRe.renderToElementWithId(ReasonReact.element(/* None */0, /* None */0, RechatApp.make(/* array */[])), "rechat");
export {
}
/* Not a pure module */
'use strict';
var Counter = require("./Counter.bs.js");
var ReactDOMRe = require("reason-react/src/ReactDOMRe.js");
var ReasonReact = require("reason-react/src/ReasonReact.js");
ReactDOMRe.renderToElementWithId(ReasonReact.element(undefined, undefined, Counter.make(/* array */[])), "index");
/* Not a pure module */
return param.then((function (html) {
ReactDOMRe.renderToElementWithId(html, node);
return Promise.resolve(/* () */0);
}));
};