Skip to content

Commit 8c5dd4e

Browse files
committed
use purecomponent instead of component
1 parent 44b506c commit 8c5dd4e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-loading-image",
3-
"version": "0.4.1",
3+
"version": "0.4.2",
44
"description": "A react image loader component",
55
"homepage": "",
66
"author": {

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ type State = {
2121
errMsg: ?any,
2222
}
2323

24-
export default class ImageLoader extends React.Component<Props, State> {
24+
export default class ImageLoader extends React.PureComponent<Props, State> {
2525
state = {
2626
isLoading: true,
2727
isError: false,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy