implement support for React 19
- Lingua principale
- Python
- Stelle
- 24.4k
- Fork
- 2.3k
- Merge medio
- 2g 7h
- PR unite (30g)
- 13
Descrizione
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
defaultPropswas mostly handled with the upgrade to react 18 and most components libs now.
propTypesremoval 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.
contextTyperemoval 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
findDOMNoderemoval 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.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Valutazione
Questa issue non è ancora stata valutata.