How to use the reason-react/lib/es6/src/reasonReact.js.wrapReasonForJs 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[/* initialState */10] = (function () {
      return /* record */[
              /* posts : array */[],
              /* isFetching : true */1
            ];
    });
  newrecord[/* reducer */12] = (function (action, _) {
      return /* Update */Block.__(0, [/* record */[
                  /* posts */action[0],
                  /* isFetching : false */0
                ]]);
    });
  return newrecord;
}

var $$default = ReasonReact.wrapReasonForJs(component, (function () {
        return make(/* array */[]);
      }));

export {
  component  ,
  fetchPosts ,
  make       ,
  $$default  ,
  $$default    as default,
  
}
/* component Not a pure module */
github nwaywood / react-fullstack-template / lib / es6 / app / src / About / About.js View on Github external
var component = ReasonReact.statelessComponent("About");

function make() {
  var newrecord = component.slice();
  newrecord[/* render */9] = (function () {
      return React.createElement("div", undefined, React.createElement("div", undefined, Utils.textEl("About")), React.createElement("img", {
                      alt: "logo",
                      height: "80px",
                      src: Logo
                    }));
    });
  return newrecord;
}

var $$default = ReasonReact.wrapReasonForJs(component, (function () {
        return make(/* array */[]);
      }));

export {
  component ,
  make      ,
  $$default ,
  $$default   as default,
  
}
/* component Not a pure module */