react-debug-mixin

0.1.1 • Public • Published

js-standard-style

react-debug-mixin

A React mixin component for logging React component lifecycle methods

Example

var ReactDebugMixin = require('react-debug-mixin')

var MyComponent = React.createClass({

    mixins: [ReactDebugMixin],

    render: function() {
      return <div>Check the dev console</div>
    }

});

Apply to all components

You can use react-mixin-tranformer to apply the debug mixin to all of your components during a build step. Follow the docs to setup your project.

Package Sidebar

Install

npm i react-debug-mixin

Weekly Downloads

1

Version

0.1.1

License

MIT

Last publish

Collaborators

  • unbracketed