Skip to content

Fix for defaultProps warning in new versions of React#158

Open
bordot wants to merge 2 commits into
HosseinShabani:masterfrom
bordot:master
Open

Fix for defaultProps warning in new versions of React#158
bordot wants to merge 2 commits into
HosseinShabani:masterfrom
bordot:master

Conversation

@bordot
Copy link
Copy Markdown

@bordot bordot commented Oct 18, 2024

Attempts to solve the warning "Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead." when using more recent versions of React (or with Expo SDK 51).

@ivandresr
Copy link
Copy Markdown

So, if I have this warning, should I ignore it?

@davidabou
Copy link
Copy Markdown

@bordot

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.

3 participants