package jsoo-react
Not available on OCaml 5.5Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=93d5751c01016f5aa018b80259df0c65ac12f25152cef1dbcff024ddfc1f07b5
md5=240fd3b58cb002ff7eaa6ddddb7eba87
Description
Added to opam-repository:
README
jsoo-react
Bindings to React for js_of_ocaml, including JSX ppx.
Adapted from ReasonReact.
jsoo-react allows to use React from OCaml, but it is still at the experimental phase: there is no published version in opam yet, and the library is expected to break backwards compatibility often.
Bug reports and contributions are welcome!
Getting started
New project
For new projects, the best way to start is by using the jsoo-react template.
Existing project
Install the
jsoo-reactpackage:opam pin add -y jsoo-react https://github.com/ml-in-barcelona/jsoo-react.gitAdd
jsoo-reactlibrary and ppx to dune file of your executable JavaScript app:(executables (names index) (modes js) (libraries jsoo-react.lib) (preprocess (pps jsoo-react.ppx)))Provision React.js library
jsoo-reactusesrequireto import React and ReactDOM. This means that you will likely need to use a bundler such as Webpack or rollup.js.Note that at this moment,
jsoo-reactis compatible with React 16, so be sure to have the appropriate constraints in yourpackage.json.
Contributing
Take a look at our Contributing Guide.
Acknowledgements
Thanks to the authors and maintainers of ReasonReact, in particular @rickyvetter for his work on the v3 of the JSX ppx.
Thanks to the authors and maintainers of Js_of_ocaml, in particular @hhugo who has been answering many many questions in GitHub threads.
Thanks to the Lexifi team for creating and maintaining gen_js_api.
Thanks to @tmattio for creating Spin and the jsoo-react template :raised_hands:
And thanks to the team behind React.js! What an amazing library :)
Dependencies (5)
-
ppxlib
>= "0.23.0" & < "0.36.0" -
gen_js_api
>= "1.0.8" -
js_of_ocaml
>= "4.0.0" -
ocaml
>= "4.12.0" & < "5.0.0" -
dune
>= "2.7"
Dev Dependencies (9)
-
odoc
with-doc -
js_of_ocaml-lwt
with-test -
ppx_blob
with-test -
reason
= "3.8.2" & with-test -
ocamlformat
= "0.21.0" & with-test -
conf-npm
with-test -
js_of_ocaml-ppx
with-test -
webtest-js
with-test -
webtest
with-test
Optional Dependencies
None
Used by
None
Conflicts
None
Build status
Results of building jsoo-react with each compiler on check.ci.ocaml.org, run of against opam-repository 8d8d144. 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.
- 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