0.1.5
Non-breaking update. Works better with bs-platform >=1.8.0, which comes with the following ReasonReact JSX fixes:
- JSX ppx now recursively transforms component's props.
- JSX ppx now reports the correct location for some errors.
- JSX ppx now correctly transforms some corner case with ref and key (
ref=?foo
).
Our own release contains the following improvements:
- Adjust ReactDOMRe's
props
and style
to include more accurate DOM and style attributes and styles (#9, #15, #17). - Add
ReactDOMRe.Style.unsafeAddProp
to unsafely add a prop to an existing style
. Make sure you know what you're doing! - Fix
reactRef
's type in various locations. A React ref is actually always nullable; we've previously only acknowledged it for DOM ref, now we do for custom (composite) components ref too. A more detailed explanation is here. This is documented in our docs in the ref section as well. - Add
cloneElement
(solves adding otherwise invalid keys like aria-label and data-foo). - Add
shouldUpdate
.