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 BooleanRemoves a mounted React element in a document element. Returns true if it was unmounted, false otherwise.
#findDOMNode Source
findDOMNode :: ReactComponent -> Effect ElementFinds the DOM node rendered by the component.
#renderToString Source
renderToString :: ReactElement -> StringRender a React element as a string.
#renderToStaticMarkup Source
renderToStaticMarkup :: ReactElement -> StringRender a React element as static markup string without extra DOM attributes.
- Modules
- ReactDOM