9 lines
290 B
ReasonML
9 lines
290 B
ReasonML
|
|
let ste = React.string;
|
|
let showIf = (cond, comp) => cond ? comp : ReasonReact.null;
|
|
|
|
module O = {
|
|
let defaultNull = E.O.default(ReasonReact.null);
|
|
let fmapOrNull = (fn, el) => el |> E.O.fmap(fn) |> E.O.default(ReasonReact.null);
|
|
let flatten = E.O.default(ReasonReact.null);
|
|
}; |