Render preact components with access to the produced virtual dom for testing.
This release lands a bunch of the community PRs, adding a few new methods:
first()
and last()
functions for FindWrappersFindWrapper.map
!Enjoy!
.attr()
and falsey values - See issue #50.find(<jsx with="attributes" />)
New methods for FindWrapper
and RenderContext
.component()
to get stateful components.setState()
and .state()
to write/read to component states.FindWrapper
will now emit a console.warn
if you try to use any method on a stale result (something new rendered since you called .find()
)