How to use the reason-react/lib/js/src/ReasonReact.js.element 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 reasonml-old / reason-react-example / lib / js / src / logo / LogoRoot.js View on Github external
'use strict';

var Logo = require("./Logo.js");
var ReactDOMRe = require("reason-react/lib/js/src/ReactDOMRe.js");
var ReasonReact = require("reason-react/lib/js/src/ReasonReact.js");

ReactDOMRe.renderToElementWithId(ReasonReact.element(/* None */0, /* None */0, Logo.make("REASON REACT", /* array */[])), "index");

/*  Not a pure module */
github rebench / rebench.github.io / lib / js / src / view / JSBlock.js View on Github external
newrecord[/* render */9] = (function () {
      return ReasonReact.element(/* None */0, /* None */0, Block_.make(/* `Text */[
                      936573133,
                      "Generated JavaScript"
                    ], /* None */0, /* None */0, /* Some */[/* true */1], /* array */[ReasonReact.element(/* None */0, /* None */0, Editor.make(code, /* JS */16585, /* None */0, /* None */0, /* Some */[/* true */1], /* None */0, /* None */0, /* array */[]))]));
    });
  return newrecord;
github rebench / rebench.github.io / lib / js / src / view / JSBlock.js View on Github external
newrecord[/* render */9] = (function () {
      return ReasonReact.element(/* None */0, /* None */0, Block_.make(/* `Text */[
                      936573133,
                      "Generated JavaScript"
                    ], /* None */0, /* None */0, /* Some */[/* true */1], /* array */[ReasonReact.element(/* None */0, /* None */0, Editor.make(code, /* JS */16585, /* None */0, /* None */0, /* Some */[/* true */1], /* None */0, /* None */0, /* array */[]))]));
    });
  return newrecord;