Module
ReactDOM
- Package
- purescript-react-dom
- Repository
- purescript-contrib/purescript-react-dom
#render Source
render :: forall eff. ReactElement -> Element -> Eff (dom :: DOM | eff) (Maybe ReactComponent)
Render a React element in a document element. Returns Nothing for stateless components.
#unmountComponentAtNode Source
unmountComponentAtNode :: forall eff. Element -> Eff (dom :: DOM | eff) Boolean
Removes a mounted React element in a document element. Returns true if it was unmounted, false otherwise.
#findDOMNode Source
findDOMNode :: forall eff. ReactComponent -> Eff (dom :: DOM | eff) 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