Skip to content

Commit 14aa53f

Browse files
committed
Updating to React release supporting 0.14
1 parent 34cf441 commit 14aa53f

File tree

5 files changed

+48
-4
lines changed

5 files changed

+48
-4
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ bower install purescript-react-dom
1212

1313
## Example
1414

15-
Please refer to [purescript-react-example](https://github.com/purescript-contrib/purescript-react)
15+
Please refer to [purescript-react-example](https://github.com/ethul/purescript-react-example)

bower.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"url": "git://github.com/purescript-contrib/purescript-react-dom.git"
1717
},
1818
"dependencies": {
19-
"purescript-react": "https://github.com/ethul/purescript-react.git#6886401e68dc472b2eb363142048c97b0de86f38",
20-
"purescript-dom": "~0.2.10"
19+
"purescript-dom": "~0.2.15",
20+
"purescript-react": "~0.6.0"
2121
}
2222
}

docs/ReactDOM.md

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
## Module ReactDOM
2+
3+
#### `render`
4+
5+
``` purescript
6+
render :: forall eff. ReactElement -> Element -> Eff (dom :: DOM | eff) (Maybe ReactComponent)
7+
```
8+
9+
Render a React element in a document element. Returns Nothing for stateless components.
10+
11+
#### `unmountComponentAtNode`
12+
13+
``` purescript
14+
unmountComponentAtNode :: forall eff. Element -> Eff (dom :: DOM | eff) Boolean
15+
```
16+
17+
Removes a mounted React element in a document element. Returns true if it was unmounted, false otherwise.
18+
19+
#### `findDOMNode`
20+
21+
``` purescript
22+
findDOMNode :: forall eff. ReactComponent -> Eff (dom :: DOM | eff) Element
23+
```
24+
25+
Finds the DOM node rendered by the component.
26+
27+
#### `renderToString`
28+
29+
``` purescript
30+
renderToString :: ReactElement -> String
31+
```
32+
33+
Render a React element as a string.
34+
35+
#### `renderToStaticMarkup`
36+
37+
``` purescript
38+
renderToStaticMarkup :: ReactElement -> String
39+
```
40+
41+
Render a React element as static markup string without extra DOM attributes.
42+
43+

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"name": "purescript-react-dom",
33
"files": [],
44
"peerDependencies": {
5-
"react-dom": "^0.14.3"
5+
"react-dom": "^0.14.6"
66
}
77
}

src/ReactDOM.purs

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ foreign import renderFn
3030
-- | Removes a mounted React element in a document element. Returns true if it was unmounted, false otherwise.
3131
foreign import unmountComponentAtNode :: forall eff. Element -> Eff (dom :: DOM | eff) Boolean
3232

33+
-- | Finds the DOM node rendered by the component.
3334
foreign import findDOMNode :: forall eff. ReactComponent -> Eff (dom :: DOM | eff) Element
3435

3536
-- | Render a React element as a string.

0 commit comments

Comments
 (0)