module Hr = {
[@react.component]
let make = () => {
;
};
};
module Title = {
type item = {
label: string,
link: string,
};
module Menu = {
[@react.component]
let make = () => {
let data = [|
{
label: "Documentation",
link: "https://github.com/ml-in-barcelona/server-reason-react",
},
{
label: "Issues",
link: "https://github.com/ml-in-barcelona/server-reason-react/issues",
},
{
label: "About",
link: "https://twitter.com/davesnx",
},
|];
{React.array(
Belt.Array.mapWithIndex(data, (key, item) =>
{item.label}
),
)}
;
};
};
[@react.component]
let make = () => {
{React.string("Server Reason React")}
;
};
};
[@warning "-26-27-32"];
[@react.component]
let make = () => {
React.useEffect(() => {
Js.log("Client mounted");
None;
});
let (title, setTitle) = RR.useStateValue("Server Reason React");
let%browser_only onChangeTitle = e => {
let value = React.Event.Form.target(e)##value;
setTitle(value);
};
{React.array([|
,
|])}
;
};