react-render-visualizer icon indicating copy to clipboard operation
react-render-visualizer copied to clipboard

Not working for stateless components

Open NochEinKamel opened this issue 10 years ago • 1 comments

If you add the mixin to stateless components there is a null-error in line 104:

index.js:104 - Uncaught TypeError: Cannot set property 'renderLog' of null.

Solution would probably be to add the getInitialState method to the mixin.

        getInitialState: function() {
            return {
                renderLog: [],
                renderCount: 1
            };
        },

NochEinKamel avatar May 05 '15 20:05 NochEinKamel

See #3

magus avatar May 07 '15 02:05 magus