Related: https://github.com/ocsigen/ts2ocaml/pull/32#issuecomment-1678472063 ReScript has its own binding for React, and also has a dedicated syntax [`@react.component`](https://rescript-lang.org/docs/react/latest/components-and-props) for React components. ts2ocaml should detect the React components and generate code with the built-in React binding and `@react.component`.