Created
January 31, 2018 18:52
-
-
Save chris-burgin/c6ec68404f98b4f1e27ca0900a531e47 to your computer and use it in GitHub Desktop.
An example using PureComponent that extends on the MessageComponent example.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Message extends PureComponent { | |
render() { | |
return <li style={{ margin: "10px" }}> {this.props.message} </li> | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment