rtl

react-transform-log-render

React Transform of the render method for log output

Showing:

Popularity

Downloads/wk

2

GitHub Stars

8

Maintenance

Last Commit

5yrs ago

Contributors

0

Package

Dependencies

0

Size (min+gzip)

0.4KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

react-transform-log-render

React Transform of the render method for log output

Installation

  1. First, install the Babel plugin:

    npm install --save-dev babel-plugin-react-transform
    
  2. Then, install the transform:

    npm install --save-dev react-transform-log-render
    
  3. Now edit your .babelrc to include extra.babel-plugin-react-transform

    {
      "stage": 0,
      "env": {
        "development": {
          "plugins": ["react-transform"],
          "extra": {
            "react-transform": {
              "transforms": [{
                "transform": "react-transform-log-render",
              }, …]
            }
          }
        }
      }
    }
    

Include/Exclude components (by name)

  1. Add path to config module

    {
      "stage": 0,
      "env": {
        "development": {
          "plugins": ["react-transform"],
          "extra": {
            "react-transform": {
              "transforms": [{
                "transform": "react-transform-log-render",
                "imports": ["./src/react-transform-log-render-options"]
              }, …]
            }
          }
        }
      }
    }
    
  2. Config example

    export default {
      exclude: ['Root', 'App'],
      include: ['TaskItem', 'Header', 'TaskCreate'],
    };
    

    You can be used the option include or exclude separately

How it looks

2015-11-14 17 12 51

in brackets the number of updates

Development

Coding Standard

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100