Skip to content

Commit

Permalink
feat(react.perf): implement whyDidYouUpdate tool
Browse files Browse the repository at this point in the history
  • Loading branch information
kiki-le-singe committed Jan 3, 2017
1 parent 855c6e4 commit a233c5f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/client/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,10 @@ if (module.hot) {
})
}

if (!__PROD__) {
const { whyDidYouUpdate } = require('why-did-you-update')

whyDidYouUpdate(React)
}

renderApp()

0 comments on commit a233c5f

Please sign in to comment.