How to use the reason-react/src/ReactDOMRe.js.renderToElementWithId function in reason-react

To help you get started, we’ve selected a few reason-react examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github OneGraph / onegraph-examples / spotify-app / src / Index.bs.js View on Github external
// 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 */
github rebench / rebench.github.io / src / index.bs.js View on Github external
'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 */
github reasonml-old / reason-react-example / src / simple / SimpleRoot.bs.js View on Github external
'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 */
github kMeillet / reason-loadable / examples / with-parcel-jsx-v2 / src / index.bs.js View on Github external
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 */
github reasonml-old / reason-react-example / src / retainedProps / RetainedPropsRoot.bs.js View on Github external
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");
}
github kMeillet / reason-loadable / examples / with-webpack-jsx-v2 / src / index.bs.js View on Github external
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 */
github emjun / tea-lang / reason / src / Index.bs.js View on Github external
// 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 */
github codekiln / django-react-chat / django_react_chat_example_project / django_react_chat_example_project / static / js / chat / rechat / src / RechatMain.js View on Github external
// 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 */
github reasonml-old / reason-react-example / src / async / CounterRoot.bs.js View on Github external
'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 */
github kMeillet / reason-loadable / src / Core / Shell.bs.js View on Github external
return param.then((function (html) {
                    ReactDOMRe.renderToElementWithId(html, node);
                    return Promise.resolve(/* () */0);
                  }));
    };