caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Hongbo Zhang (BLOOMBERG/ 731 LEX)" <hzhang295@bloomberg.net>
To: ngzhian@gmail.com
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] React.js programming in OCaml?
Date: Mon, 27 Mar 2017 13:56:08 -0000	[thread overview]
Message-ID: <58D919F80221009C00390436_0_58748@msllnjpmsgsv06> (raw)

[-- Attachment #1: Type: text/plain, Size: 1572 bytes --]

Indeed, OCaml actually has the official support of ReactJS bindings provided by Facebook's Reason team and Bloomberg's BuckleScript compiler. According to React Conf 2017, it is used in production for already half a year and powered a quite large piece of components in FB's messenger.com
Note ReasonML provides JSX syntax which is more familiar to ReactJS users, but you can use either Reason syntax or vanilla OCaml syntax. Thanks -- Hongbo

From: ngzhian@gmail.com At: 03/26/17 11:41:19
To: asai@is.ocha.ac.jp
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] React.js programming in OCaml?

On Sun, Mar 26, 2017 at 5:48 PM, Kenichi Asai <asai@is.ocha.ac.jp> wrote:

What is the best way to do react.js programming as introduced in

https://facebook.github.io/react/

in OCaml?  I found the tutorial on the above page written very well,
and I want to do the same thing in OCaml at the similar abstraction
level as in JS.  Any information is welcome.  Thanks in advance.


The closest thing I know is reason-react, reason is facebook's sugar syntax for ocaml for the web.
Bucklescript, is another javascript backend for ocaml, and has interop with javascript libraries.

I think the main difference is that [0] allows you to write JSX.

[0] https://github.com/reasonml/reason-react
[1] https://github.com/bloomberg/bucklescript/
 


--
Kenichi Asai

--
Caml-list mailing list.  Subscription management and archives:
https://sympa.inria.fr/sympa/arc/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs



[-- Attachment #2: Type: text/html, Size: 5677 bytes --]

             reply	other threads:[~2017-03-27 13:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-27 13:56 Hongbo Zhang (BLOOMBERG/ 731 LEX) [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-03-26  9:48 Kenichi Asai
2017-03-26  9:54 ` David Teller
2017-03-26  9:57   ` Daniel Bünzli
2017-03-26 15:36 ` Zhi An Ng

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=58D919F80221009C00390436_0_58748@msllnjpmsgsv06 \
    --to=hzhang295@bloomberg.net \
    --cc=caml-list@inria.fr \
    --cc=ngzhian@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).