react-stateless-wrapper

Wraps React stateless components into regular components

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
react-stateless-wrapper
1.0.82 years ago9 years agoMinified + gzip package size for react-stateless-wrapper in KB

Readme

Deprecated, there are better options now, check out Enzyme

Wraps React stateless components into regular components, for unit testing purposes.
npm install react-stateless-wrapper --save-dev

Usage:
import { wrap } from 'react-stateless-wrapper'
let WrappedComponent = wrap(StatelessComponent)
TestUtils.renderIntoDocument(<WrappedComponent ...props/>)