0.1.1 • Published 9 years ago

react-debug-mixin v0.1.1

Weekly downloads
21
License
MIT
Repository
github
Last release
9 years ago

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.