File tree Expand file tree Collapse file tree 5 files changed +48
-4
lines changed Expand file tree Collapse file tree 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
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 )
Original file line number Diff line number Diff line change 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}
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 22 "name" : " purescript-react-dom" ,
33 "files" : [],
44 "peerDependencies" : {
5- "react-dom" : " ^0.14.3 "
5+ "react-dom" : " ^0.14.6 "
66 }
77}
Original file line number Diff line number Diff 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.
3131foreign import unmountComponentAtNode :: forall eff . Element -> Eff (dom :: DOM | eff ) Boolean
3232
33+ -- | Finds the DOM node rendered by the component.
3334foreign import findDOMNode :: forall eff . ReactComponent -> Eff (dom :: DOM | eff ) Element
3435
3536-- | Render a React element as a string.
You can’t perform that action at this time.
0 commit comments