ocsigen / ts2ocaml

Generate OCaml bindings from TypeScript definitions via the TypeScript compiler API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rescript: add a direct support for React components

cannorin opened this issue · comments

Related: #32 (comment)

ReScript has its own binding for React, and also has a dedicated syntax @react.component for React components.

ts2ocaml should detect the React components and generate code with the built-in React binding and @react.component.