reason-react icon indicating copy to clipboard operation
reason-react copied to clipboard

React.jsx related deprecations

Open rickyvetter opened this issue 4 years ago • 1 comments

Needs work on the ppx side as well to support fully.

The goal here is to:

  1. move to React.jsx as the default compile target for Reason JSX. This is in line with babel transforms and the API is much simpler to bind to.
  2. Deprecate as many createElement bindings as possible to consolidate on JSX syntax+exactly one createElement binding at React.createElement. To do this correctly I will also remove the jsx bindings in ReactDOMRe and fiddle with the type of DOM elements to make that work.

rickyvetter avatar May 05 '20 16:05 rickyvetter

I have merged jsx but not the deprecations. Need support on BuckleScript/ppx side, which needs support on a stable branch of React before we can do those.

rickyvetter avatar May 26 '20 21:05 rickyvetter

Done in https://github.com/reasonml/reason-react/pull/714 <3

davesnx avatar Jun 13 '23 12:06 davesnx