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

Fix warning about defaultProps in React 18.3 #9832

Merged
merged 3 commits into from
May 6, 2024
Merged

Conversation

djhi
Copy link
Contributor

@djhi djhi commented May 6, 2024

Problem

React 19 removes support for defaultProps and React 18.3 display warnings about it.

Solution

The temporary solution is to introduce some other static props for textAlign and sortable

Closes #9815

@fzaninotto fzaninotto changed the title Avoid using defaultProps Fix warning about defaultProps in React 18.3 May 6, 2024
@fzaninotto fzaninotto merged commit a037ccf into master May 6, 2024
12 checks passed
@fzaninotto fzaninotto deleted the avoid-default-props branch May 6, 2024 14:07
@fzaninotto fzaninotto added this to the 4.16.18 milestone May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFR Ready For Review
Projects
None yet
2 participants