0.1.0 • Published 6 years ago

react-yelling v0.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

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 A

Config

paramtypedefaultdescription
predicateBoolean, Functiontrueyell or slience
componentWillMountBooleantrueslience when false, same beblow
renderBooleantrue
componentDidMountBooleantrue
componentWillReceivePropsBooleantrue
shouldComponentUpdateBooleantrue
componentWillUpdateBooleantrue
componentDidUpdateBooleantrue
componentWillUnmountBooleantrue
@yell({
  // ...configs
})
class A extends Reactr.Component {
  // ... rest of code

Developlement

leverage rollup to package this module

yarn dev

Test

not yet

License

MIT

0.1.0

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago