6

I managed to clean up the React part of my project, and now everything is smooth AF *.*
But boy oh boy did I fuck up big time, any console.log() written under the render section of anywhere was triggered around 4 times! I still have to rebuild everything (I only finished the dashboard so far) but it will be cleaner that I could ever hope

Comments
  • 1
    I thought console.log was bad, but using it inside render()... there's a react-devtool for a reason.
    Last time the console was spammed by "debugging-logs" other people forgot in the code i removed all console.log's i could find. Tadaa: 50% less logs, 100% of bugs remain.
  • 0
    @YouAreAPIRate well it comes in handly to check how many time render() is rendered :')
Add Comment