reason-react
reason-react copied to clipboard
React.jsx related deprecations
Needs work on the ppx side as well to support fully.
The goal here is to:
- 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. - Deprecate as many
createElement
bindings as possible to consolidate on JSX syntax+exactly one createElement binding atReact.createElement
. To do this correctly I will also remove thejsx
bindings inReactDOMRe
and fiddle with the type of DOM elements to make that work.
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.
Done in https://github.com/reasonml/reason-react/pull/714 <3