1.0.0 • Published 5 years ago
condomjs v1.0.0
CondomJS
Safe and thin wrapper component for React when you need to use penis.js
If B==D (or B===D with isHard prop) it will render the Children otherwise it will render nothing
Installation
Use npm or yarn to install CondomJS.
npm install condomjsor
yarn add condomjsUsage
Basic usage:
import Condom from 'condomjs'
<Condom D={1} B={'1'} isHard >
<Children />
</Condom>API:
| Name | Type | Required | Default |
|---|---|---|---|
| D | Object | no | |
| B | Object | no | |
| ishard | bool | no | false |
| children | node / node | no | ' ' |
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
License
1.0.0
5 years ago