Module
ReactDOM
- Package
- purescript-react-dom
- Repository
- purescript-contrib/purescript-react-dom
#render Source
render :: ReactElement -> Element -> Effect (Maybe ReactComponent)
Render a React element in a document element. Returns Nothing for stateless components.
#hydrate Source
hydrate :: ReactElement -> Element -> Effect (Maybe ReactComponent)
Same as render
, but is used to hydrate a container whose HTML contents were rendered on the server.
#unmountComponentAtNode Source
unmountComponentAtNode :: Element -> Effect Boolean
Removes a mounted React element in a document element. Returns true if it was unmounted, false otherwise.
#findDOMNode Source
findDOMNode :: ReactComponent -> Effect Element
Finds the DOM node rendered by the component.
#renderToString Source
renderToString :: ReactElement -> String
Render a React element as a string.
#renderToStaticMarkup Source
renderToStaticMarkup :: ReactElement -> String
Render a React element as static markup string without extra DOM attributes.
- Modules
- ReactDOM