react-smoke-test-gen
Version:
Automatically generate smoke test for each variation of your component props
20 lines (16 loc) • 390 B
JSX
import React from 'react'
import PropTypes from 'prop-types'
class Simple extends React.Component {
render() {
// ... do things with the props
}
}
Simple.propTypes = {
optionalString: PropTypes.string,
optionalString: PropTypes.string,
optionalShape: PropTypes.shape({
optionalString: PropTypes.string,
optionalString: PropTypes.string
})
}
export default Simple