Skip to content
This repository has been archived by the owner on Apr 2, 2018. It is now read-only.

Commit

Permalink
Whoops. Add code back to demo
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabe Scholz committed May 13, 2016
1 parent ebe3637 commit 113d8c7
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions demo/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,13 @@ import {render} from 'react-dom'

import whyDidYouUpdate from '../../src'

whyDidYouUpdate(React)

class ClassDemo extends React.Component {
render () {
return <div />
}
}

const FactoryDemo = React.createClass({
render () {
return <div />
}
})

render(<ClassDemo a={1} b={{c: {d: 4}}} e={function something () {}} f={1} />, document.querySelector('#demo'))
render(<ClassDemo a={1} b={{c: {d: 4}}} e={function something () {}} f={2} />, document.querySelector('#demo'))

0 comments on commit 113d8c7

Please sign in to comment.