File tree 5 files changed +48
-4
lines changed
5 files changed +48
-4
lines changed Original file line number Diff line number Diff line change @@ -12,4 +12,4 @@ bower install purescript-react-dom
12
12
13
13
## Example
14
14
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 )
Original file line number Diff line number Diff line change 16
16
"url" : " git://github.com/purescript-contrib/purescript-react-dom.git"
17
17
},
18
18
"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 "
21
21
}
22
22
}
Original file line number Diff line number Diff line change
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
+
Original file line number Diff line number Diff line change 2
2
"name" : " purescript-react-dom" ,
3
3
"files" : [],
4
4
"peerDependencies" : {
5
- "react-dom" : " ^0.14.3 "
5
+ "react-dom" : " ^0.14.6 "
6
6
}
7
7
}
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ foreign import renderFn
30
30
-- | Removes a mounted React element in a document element. Returns true if it was unmounted, false otherwise.
31
31
foreign import unmountComponentAtNode :: forall eff . Element -> Eff (dom :: DOM | eff ) Boolean
32
32
33
+ -- | Finds the DOM node rendered by the component.
33
34
foreign import findDOMNode :: forall eff . ReactComponent -> Eff (dom :: DOM | eff ) Element
34
35
35
36
-- | Render a React element as a string.
You can’t perform that action at this time.
0 commit comments