react-debug-mixin
v0.1.1
Published
A React mixin component for logging React component lifecycle methods
Downloads
11
Maintainers
Readme
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.