How to use the reason-react/lib/es6/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 mike-engel / Barnacal / lib / es6 / src / calendarBody.js View on Github external
function week_component(idx, week) {
  return ReasonReact.element(/* Some */[String(idx)], /* None */0, Week.make(week, /* array */[]));
}
github mike-engel / Barnacal / lib / es6 / src / app.js View on Github external
newrecord[/* render */9] = (function (param) {
      var state = param[/* state */2];
      var date = state[/* date */0];
      var update_available = state[/* updateAvailable */1];
      return React.createElement("div", {
                  style: container_styles
                }, ReasonReact.element(/* None */0, /* None */0, Popover.make(/* array */[
                          ReasonReact.element(/* None */0, /* None */0, Header.make(param[/* reduce */1], date, onNextMonth, onLastMonth, resetDate, /* array */[])),
                          ReasonReact.element(/* None */0, /* None */0, Calendar.make(date, /* array */[])),
                          ReasonReact.element(/* None */0, /* None */0, Menu.make(update_available, /* array */[]))
                        ])), React.createElement("div", {
                      style: caret_styles
                    }));
    });
  newrecord[/* initialState */10] = (function () {
github mike-engel / Barnacal / lib / es6 / src / app.js View on Github external
newrecord[/* render */9] = (function (param) {
      var state = param[/* state */2];
      var date = state[/* date */0];
      var update_available = state[/* updateAvailable */1];
      return React.createElement("div", {
                  style: container_styles
                }, ReasonReact.element(/* None */0, /* None */0, Popover.make(/* array */[
                          ReasonReact.element(/* None */0, /* None */0, Header.make(param[/* reduce */1], date, onNextMonth, onLastMonth, resetDate, /* array */[])),
                          ReasonReact.element(/* None */0, /* None */0, Calendar.make(date, /* array */[])),
                          ReasonReact.element(/* None */0, /* None */0, Menu.make(update_available, /* array */[]))
                        ])), React.createElement("div", {
                      style: caret_styles
                    }));
    });
  newrecord[/* initialState */10] = (function () {
github mike-engel / Barnacal / lib / es6 / src / app.js View on Github external
newrecord[/* render */9] = (function (param) {
      var state = param[/* state */2];
      var date = state[/* date */0];
      var update_available = state[/* updateAvailable */1];
      return React.createElement("div", {
                  style: container_styles
                }, ReasonReact.element(/* None */0, /* None */0, Popover.make(/* array */[
                          ReasonReact.element(/* None */0, /* None */0, Header.make(param[/* reduce */1], date, onNextMonth, onLastMonth, resetDate, /* array */[])),
                          ReasonReact.element(/* None */0, /* None */0, Calendar.make(date, /* array */[])),
                          ReasonReact.element(/* None */0, /* None */0, Menu.make(update_available, /* array */[]))
                        ])), React.createElement("div", {
                      style: caret_styles
                    }));
    });
  newrecord[/* initialState */10] = (function () {
github mike-engel / Barnacal / lib / es6 / src / calendar.js View on Github external
newrecord[/* render */9] = (function () {
      return React.createElement("table", {
                  style: calendar_styles
                }, ReasonReact.element(/* None */0, /* None */0, CalendarHeader.make(/* array */[])), ReasonReact.element(/* None */0, /* None */0, CalendarBody.make(date, /* array */[])));
    });
  return newrecord;
github mike-engel / Barnacal / lib / es6 / src / app.js View on Github external
newrecord[/* render */9] = (function (param) {
      var state = param[/* state */2];
      var date = state[/* date */0];
      var update_available = state[/* updateAvailable */1];
      return React.createElement("div", {
                  style: container_styles
                }, ReasonReact.element(/* None */0, /* None */0, Popover.make(/* array */[
                          ReasonReact.element(/* None */0, /* None */0, Header.make(param[/* reduce */1], date, onNextMonth, onLastMonth, resetDate, /* array */[])),
                          ReasonReact.element(/* None */0, /* None */0, Calendar.make(date, /* array */[])),
                          ReasonReact.element(/* None */0, /* None */0, Menu.make(update_available, /* array */[]))
                        ])), React.createElement("div", {
                      style: caret_styles
                    }));
    });
  newrecord[/* initialState */10] = (function () {