-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Convert some simple components to be functional #3961
Conversation
- Connected Item - Filter ConnectedFilterControl Item - List - Tabs List
b2996a0
to
d1dbc79
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎩 and code look good. Just that NamedExoticComponent that you can 🔥
src/components/List/List.tsx
Outdated
@@ -1,4 +1,4 @@ | |||
import React, {PureComponent} from 'react'; | |||
import React, {NamedExoticComponent} from 'react'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Were you planning on doing something with this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ooh whoops. That was a hangover from a slightly different trick to tempt the types into playing nice that wasn't needed. Removed!
- Connected Item - Filter ConnectedFilterControl Item - List - Tabs List
WHY are these changes introduced?
Death to class components!
WHAT is this pull request doing?
Converting the following components to be functional components: