Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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 () {