Module

Enzyme.Full

Package
purescript-react-enzyme
Repository
alvart/purescript-react-enzyme

#ReactWrapper Source

data ReactWrapper :: Type

Represents an Enzyme wrapper for components that may interact with DOM APIs or that are part of higher order components.

Instances

#mount Source

mount :: ReactElement -> Effect ReactWrapper

Creates a ReactWrapper from a React element.

#remount Source

remount :: ReactWrapper -> Effect Unit

A method that re-mounts the component, if it is not currently mounted. This can be used to simulate a component going through an unmount/mount lifecycle.