reason-react
Advanced tools
Comparing version 0.3.3 to 0.3.4
@@ -10,16 +10,13 @@ --- | ||
- `render` : `(ReasonReact.reactElement, Dom.element) => unit` | ||
- `unmountComponentAtNode` : `Dom.element => unit` | ||
- `findDOMNode` : `ReasonReact.reactRef => Dom.element` | ||
- `hydrate` : `(ReasonReact.reactElement, Dom.element) => unit` | ||
- `objToDOMProps` : `Js.t({..}) => reactDOMProps` (see use-case in [Invalid Prop Name](invalid-prop-name.md)) | ||
- `domElementToObj` : `Dom.element => Js.t({..})`: turns a DOM element into a Js object whose fields that you can dangerously access. | ||
And two extra convenience utilities: | ||
And 4 convenience utilities: | ||
- `renderToElementWithClassName` : `(ReasonReact.reactElement, string) => unit`: finds the (first) element of the provided class name and `render` to it. | ||
- `renderToElementWithId` : `(ReasonReact.reactElement, string) => unit`: finds the element of the provided id and `render` to it. | ||
- `hydrateToElementWithClassName`, `hydrateToElementWithId`: same. | ||
@@ -26,0 +23,0 @@ ### ReactDOMServer |
@@ -15,4 +15,4 @@ Like HISTORY.md, but for planned future versions and subject to change. The vocabulary here uses the past tense, to pretend that the versions are already published. | ||
# 0.3.4 | ||
# 0.3.5 | ||
- Get rid of implicit keys on a component (likely non-breaking) |
@@ -1,2 +0,2 @@ | ||
# 0.3.3 | ||
# 0.3.4 | ||
@@ -3,0 +3,0 @@ This release **requires** bs-platform 2.2.2! If your app haven't upgraded to it, don't worry; you can still use ResonReact 0.3.2 just fine. Only two small changes. |
@@ -35,3 +35,3 @@ 'use strict'; | ||
if (elements.length !== 0) { | ||
ReactDom.render(reactElement, elements[0]); | ||
ReactDom.hydrate(reactElement, elements[0]); | ||
return /* () */0; | ||
@@ -54,3 +54,3 @@ } else { | ||
} else { | ||
ReactDom.render(reactElement, match); | ||
ReactDom.hydrate(reactElement, match); | ||
return /* () */0; | ||
@@ -57,0 +57,0 @@ } |
{ | ||
"name": "reason-react", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
"description": "React bindings for Reason", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
3098620