Skip to content

implement support for React 19 #3231

Open
@ndrezn

Description

@ndrezn

We should start exploring React 19 support. React 19 has many changes which may affect how Dash works.

We know that component libraries will be affected as defaultProps is removed in React 19.

From @T4rk1n :

The defaultProps was mostly handled with the upgrade to react 18 and most components libs now.
propTypes removal doesn't really affect us because we still have the runtime check on our own, we also have our own typescript prop type support altho that might be difficult to update in the future if typescript indeed goes with the go rewrite that been in the news recently.
contextType removal is a new one I didn't see before, might have to update some components for it to work.
string refs removals was also part of the 18 update along with ReactDOM.render -> ReactDOM.createRoot
findDOMNode removal was part of react 18 upgrade.
new one is JSX namespace is changed https://react.dev/blog/2024/04/25/react-19-upgrade-guide#the-jsx-namespace-in-typescript might need some adaptation to the types.
The rest of the changes I don't think would affect us that much, I don't see anything that would prevent us to update. The initial fear with react 19 was with their new compiler but I think that was dropped.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2considered for next cyclefeaturesomething new

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions