Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/chengcyber/react-yelling

make your react component yelling :)
https://github.com/chengcyber/react-yelling

jest lifecycle react react-yelling rollup

Last synced: 27 days ago
JSON representation

make your react component yelling :)

Awesome Lists containing this project

README

        

# 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

Hello, World

}
}

export default A

```

# Screenshot

![](assets/logout.png)

# Config

| 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 code
```

# Developlement

leverage rollup to package this module

```
yarn dev
```

# Test

jest tests the react render correctly

```
yarn test
```

# License

MIT