react-folder-tree icon indicating copy to clipboard operation
react-folder-tree copied to clipboard

remove console.log statements

Open thejustinwalsh opened this issue 4 years ago • 1 comments

Potentially using tooling like Uglify to remove console.log statements from the production package on npm.

thejustinwalsh avatar Sep 03 '21 04:09 thejustinwalsh

sure! you are right maybe in production the default behavior should be no console.log when state change.

For now we can pass a noop function to prevent the default console.log

const onTreeStateChange = (state, event) => {}

shunjizhan avatar Sep 03 '21 06:09 shunjizhan