Skip to content

Instantly share code, notes, and snippets.

@ryanflorence
Last active October 6, 2017 18:05
Show Gist options
  • Select an option

  • Save ryanflorence/70f9ca97de0606212424694a3629428d to your computer and use it in GitHub Desktop.

Select an option

Save ryanflorence/70f9ca97de0606212424694a3629428d to your computer and use it in GitHub Desktop.
// first render
<Avatar user={{ id: ‘ryan’ }}/>
// next render
<Avatar user={{ id: ‘ryan’ }}/>
// prop diff thinks something changed because {} !== {}
// element diff (reconciler) finds out that nothing changed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment