open FC.Base; let simpleMenu = () => Menu.( Js.log(e.key)}> "1st menu item"->React.string "2nd menu item"->React.string "3nd menu item"->React.string ) ; let subMenu = () => Menu.( Js.log(e.key)}> "Item1"->React.string "Item2"->React.string "Item3"->React.string "Item4"->React.string ) ; let entries = EntryTypes.[ folder( ~title="Dropdown menu", ~children=[ entry(~title="Simple", ~render=simpleMenu), entry(~title="Submenu", ~render=subMenu), ], ), ];