This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open ExtUtils; | |
module DragDropContext = { | |
[@bs.module "react-beautiful-dnd"] external reactClass : ReasonReact.reactClass = | |
"DragDropContext"; | |
Js.log(reactClass); | |
let make = (~onDragEnd, children) => | |
ReasonReact.wrapJsForReason(~reactClass, ~props={"onDragEnd": onDragEnd}, children); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Route = { | |
[@bs.module "react-router-dom"] external reactClass : ReasonReact.reactClass = "Route"; | |
let make = (~component=?, ~render=?, ~exact=?, ~path=?, children) => | |
ReasonReact.wrapJsForReason( | |
~reactClass, | |
~props={ | |
"path": path |> Js.Nullable.from_opt, | |
"render": render |> Js.Nullable.from_opt, | |
"component": component |> Js.Nullable.from_opt, | |
"exact": exact |> ExtUtils.jsOptBool |> Js.Nullable.from_opt |