Skip to content
This repository has been archived by the owner on Sep 27, 2022. It is now read-only.

Use pure components there possible #38

Open
anjmao opened this issue Jan 3, 2019 · 0 comments
Open

Use pure components there possible #38

anjmao opened this issue Jan 3, 2019 · 0 comments

Comments

@anjmao
Copy link

anjmao commented Jan 3, 2019

Hi, there are quite few places there PureComponent or React.memo could be used to reduce rerender.

For example https://github.com/gothinkster/react-mobx-realworld-example-app/blob/master/src/components/ListPagination.js#L3 . ListPagination is rendered 3 times on each page change, if I wrap it in React.memo it is rendered only one time as it should be.

Other components which cause unneeded rerender EditProfileSettings, FollowUserButton, Banner, YourFeedTab, GlobalFeedTab, TagFilterTab.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant