-
Notifications
You must be signed in to change notification settings - Fork 4.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
Refactor FormFileUpload to use React hooks #22894
Conversation
Size Change: -36 B (0%) Total Size: 1.12 MB
ℹ️ View Unchanged
|
type="file" | ||
ref={ ref } | ||
multiple={ multiple } | ||
style={ { display: 'none' } } |
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.
I've often wondered: do element components benefit from a constant style reference, or do you think it doesn't matter?
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.
I don't know tbh. I think React has some internal shallow rendering techniques but I suspect it extends to common props like style
(it's a guess)
Related #22890
Refactored FormFileUpload to use hooks.
Testing instructions