Skip to content

Instantly share code, notes, and snippets.

@ohansemmanuel
Created October 3, 2018 16:06
Show Gist options
  • Save ohansemmanuel/915f9080d198ee4d778b629d2b88b42d to your computer and use it in GitHub Desktop.
Save ohansemmanuel/915f9080d198ee4d778b629d2b88b42d to your computer and use it in GitHub Desktop.
import React, {Component, PureComponent} from "react"
//before
class I extends Component {
render() {
return <span className="faint">I </span>;
}
//after
class I extends PureComponent {
render() {
return <span className="faint">I </span>;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment