Skip to content

Commit

Permalink
use purecomponent instead of component
Browse files Browse the repository at this point in the history
  • Loading branch information
chilijung committed Sep 6, 2018
1 parent 44b506c commit 8c5dd4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-loading-image",
"version": "0.4.1",
"version": "0.4.2",
"description": "A react image loader component",
"homepage": "",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type State = {
errMsg: ?any,
}

export default class ImageLoader extends React.Component<Props, State> {
export default class ImageLoader extends React.PureComponent<Props, State> {
state = {
isLoading: true,
isError: false,
Expand Down

0 comments on commit 8c5dd4e

Please sign in to comment.