0.1.0 • Published 8 years ago
react-yelling v0.1.0
React-yelling: handy debug react life cycle
every time you wanna trace a component life cycle, so trivial the life cycle method need you define! That's react-yelling comes to the rescue.
Quick start
import React from 'react'
import yell from 'react-yelling'
@yell()
class A extends React.Component {
render() {
return <div>Hello, World</div>
}
}
export default AConfig
| param | type | default | description |
|---|---|---|---|
| predicate | Boolean, Function | true | yell or slience |
| componentWillMount | Boolean | true | slience when false, same beblow |
| render | Boolean | true | |
| componentDidMount | Boolean | true | |
| componentWillReceiveProps | Boolean | true | |
| shouldComponentUpdate | Boolean | true | |
| componentWillUpdate | Boolean | true | |
| componentDidUpdate | Boolean | true | |
| componentWillUnmount | Boolean | true |
@yell({
// ...configs
})
class A extends Reactr.Component {
// ... rest of codeDeveloplement
leverage rollup to package this module
yarn devTest
not yet
License
MIT