Skip to content

[core] Remove any from React.ReactElement types #42380

@DiegoAndai

Description

@DiegoAndai

Context

In the upcoming React 19 @types/ packages, the props of ReactElement now default to unknown instead of any.

We have many occurrences that rely on ReactElement props being any (the previous default). To migrate to React 19, the any type was specified explicitly in #42346, so we can keep the previous default behavior.

This issue

We should gradually remove any and rely on the new default, unknown. This is what this issue is tracking.

Search keywords: react 19 types any react element

Metadata

Metadata

Assignees

Labels

internalBehind-the-scenes enhancement. Formerly called “core”.ready to takeHelp wanted. Guidance available. There is a high chance the change will be acceptedtypescript

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions