Skip to content

Instantly share code, notes, and snippets.

@ohansemmanuel
Last active April 26, 2019 03:42
Show Gist options
  • Save ohansemmanuel/ac7aa4aff479ce3816a95410424de9a9 to your computer and use it in GitHub Desktop.
Save ohansemmanuel/ac7aa4aff479ce3816a95410424de9a9 to your computer and use it in GitHub Desktop.
+ import { PureComponent } from 'react'

- class Benny extends Component {
+ class Benny extends PureComponent {
  render () {
    return <Consumer>
    {position => <svg />}
  </Consumer>
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment