Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// Generated by BUCKLESCRIPT VERSION 2.0.0, PLEASE EDIT WITH CARE
'use strict';
import * as Home from "./Home.js";
import * as Block from "bs-platform/lib/es6/block.js";
import * as Curry from "bs-platform/lib/es6/curry.js";
import * as Utils from "../Utils.js";
import * as React from "react";
import * as ReasonReact from "reason-react/lib/es6/src/reasonReact.js";
import * as HackerNewsData from "../HackerNewsData.js";
var component = ReasonReact.reducerComponent("HomeComponent");
function fetchPosts(reduce) {
return HackerNewsData.fetchPosts(Curry._1(reduce, (function (data) {
return /* HackerData */[data];
})));
}
function make() {
var newrecord = component.slice();
newrecord[/* didMount */4] = (function (self) {
HackerNewsData.fetchPosts(Curry._1(self[/* reduce */3], (function (data) {
return /* HackerData */[data];
})));
return /* NoUpdate */0;
});
newrecord[/* render */9] = (function (self) {