Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use React.memo if available #53

Merged
merged 2 commits into from May 13, 2019
Merged

Use React.memo if available #53

merged 2 commits into from May 13, 2019

Conversation

merisbahti
Copy link
Contributor

This PR attempts to use React.memo if it is avaliable.

I previously attempted implementing React.memo (if it isn't avaliable), but this would just increase the bundle size for all users, and as such this feature will only be avaliable for projects which use newer (16.6>=) versions of React.

@levrik levrik changed the title React: Memoize icons if React.memo is avaliable. Use React.memo is available May 13, 2019
@levrik levrik merged commit 57dacc7 into levrik:master May 13, 2019
@levrik levrik changed the title Use React.memo is available Use React.memo if available May 13, 2019
levrik pushed a commit that referenced this pull request May 13, 2019
levrik pushed a commit that referenced this pull request May 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants