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 nwaywood / react-fullstack-template / lib / es6 / app / src / HomeContainer / HomeContainer.js View on Github external
newrecord[/* render */9] = (function (self) {
      var match = self[/* state */4][/* isFetching */1];
      return React.createElement("div", undefined, React.createElement("button", {
                      onClick: (function () {
                          return HackerNewsData.fetchPosts(Curry._1(self[/* reduce */3], (function (data) {
                                            return /* HackerData */[data];
                                          })));
                        })
                    }, Utils.textEl("Refresh")), match !== 0 ? React.createElement("h2", undefined, Utils.textEl("loading...")) : React.createElement("div", undefined, ReasonReact.element(/* None */0, /* None */0, Home.make(self[/* state */4][/* posts */0], /* array */[]))));
    });
  newrecord[/* initialState */10] = (function () {