Install
dune-project
Dependency
Authors
Maintainers
Sources
md5=29b0b32a163c27d9874fcaf2425f3b5a
sha512=94d23654757178716fd9377dc1c66e23d5b3bf08b92fe1038e1d692931ce58682d6ac49b4b43fa83d9bc3ae9a9508066eea8eec184d10ca8066d323d84bca972
Description
Melange bindings for react-day-picker written in ReasonML
README
Note
These are the first bindings I made for a React component. Needs improvement. Feedback and suggestions are highly welcome.
Usage
Add as OPAM dependency using pin:
opam pin reason-react-day-picker git+https://github.com/Software-Deployed/reason-react-day-picker
Add reason-react-day-picker to libraries dune stanza:
(libraries
reason-react-day-picker)<DayPicker
mode="range"
selected={`Range({
from: Js.Nullable.return(openDate),
to_: Js.Nullable.return(closeDate),
})}
onSelect={`Range(dates => {
let openDate =
switch (dates.from->Js.Nullable.toOption) {
| Some(date) => date
| None => today
};
let closeDate =
switch (dates.to_->Js.Nullable.toOption) {
| Some(date) => date
| None => openDate
};
updateOpenDate(openDate);
updateCloseDate(closeDate);
})}
/>
Dependencies (8)
Dev Dependencies (1)
-
odoc
with-doc
Optional Dependencies
None
Used by
None
Conflicts
None
Build status
Results of building reason-react-day-picker with each compiler on check.ci.ocaml.org, run of against opam-repository 8a77e58. All results for this package.
Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.
| Version | OCaml 4.11 | OCaml 4.14 | OCaml 5.2 | OCaml 5.4 | OCaml 5.5 |
|---|---|---|---|---|---|
| 0.1 (this version) | n/a | good | good | good | good |
- good Package successfully built
- partial One of the dependencies failed to build
- bad Package failed to build
- n/a Package is not available in this environment
- internal Internal failure