Module

ReactDOM

#render

render :: ReactElement -> Element -> Effect (Maybe ReactComponent)

Render a React element in a document element. Returns Nothing for stateless components.

#hydrate

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

unmountComponentAtNode :: Element -> Effect Boolean

Removes a mounted React element in a document element. Returns true if it was unmounted, false otherwise.

#findDOMNode

findDOMNode :: ReactComponent -> Effect Element

Finds the DOM node rendered by the component.

#renderToString

renderToString :: ReactElement -> String

Render a React element as a string.

#renderToStaticMarkup

renderToStaticMarkup :: ReactElement -> String

Render a React element as static markup string without extra DOM attributes.

Modules