[react] Types for 19 #64451
Replies: 15 comments 13 replies
-
|
Thanks for the discussion about "react", some useful links for everyone: Pinging the DT module owners: @johnnyreilly, @bbenezech, @pzavolinsky, @ericanderson, @DovydasNavickas, @theruther4d, @guilhermehubner, @ferdaber, @jrakotoharisoa, @pascaloliv, @Hotell, @franklixuefei, @Jessidhia, @saranshkataria, @lukyth, @eps1lon, @zieka, @dancerphil, @dimitropoulos, @disjukr, @vhfmag, @hellatan, @priyanshurav, @Semigradsky, @mattpocock. |
Beta Was this translation helpful? Give feedback.
-
|
Added "default |
Beta Was this translation helpful? Give feedback.
-
|
This one? #64099 |
Beta Was this translation helpful? Give feedback.
-
|
Added #64896 |
Beta Was this translation helpful? Give feedback.
-
|
Added scoped instead of global namespace: #64464 |
Beta Was this translation helpful? Give feedback.
-
|
fyi: pinned for improved transparency |
Beta Was this translation helpful? Give feedback.
-
|
Added |
Beta Was this translation helpful? Give feedback.
-
|
Deprecated |
Beta Was this translation helpful? Give feedback.
-
|
Added deprecation of types related to |
Beta Was this translation helpful? Give feedback.
-
|
Will forwardRef and the default prop 'ref' in components be addressed here? |
Beta Was this translation helpful? Give feedback.
-
|
Since React 19 adds full support for custom elements, it would be nice to not raise errors on elements that don't have explicitly defined types. They should just be treated like any regular/unknown The desired behavior would be similar to custom attributes that have a dash in them and don't raise TS errors. |
Beta Was this translation helpful? Give feedback.
-
|
Is the It seems to be the case according to the current React docs, but I couldn't find it reflected in the latest types. I'm not sure how or by whom the |
Beta Was this translation helpful? Give feedback.
-
|
What do we install for react 19 types? I see latest |
Beta Was this translation helpful? Give feedback.
-
|
React |
Beta Was this translation helpful? Give feedback.
-
|
#72820 |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
React 19 is not released. This issue is meant to collect type-related breaking changes we want to ship with the next major:
PofReactElementtounknownI missed to do this in React 18. It'll also help mitigate 5.0: Narrowing from type-guards ignored when constructing JSX call (2604) microsoft/TypeScript#53178. See react-native: Ensure elements narrowed by isValidElement are valid props #64840
refobject-defaults) refs are mutable by default.RefObjectwill not includenullby default: [react] Make all refs mutable by defaultuseref-required-initial) Require initial value foruseRef: [react] Require initial value foruseRef#64920scoped-jsx) Remove deprecated globalJSXnamespace: [react] Add JSX namespace to React namespace #64464React.SFCFactorydeprecated-react-text) Remove deprecatedReact.ReactTextdeprecated-react-child) Remove deprecatedReact.ReactChilddeprecated-react-node-array) Remove deprecatedReact.ReactNodeArrayReactFragmentdeprecated-void-function-component) Remove deprecatedReact.VFCdeprecated-void-function-component) Remove deprecatedReact.VoidFunctionComponentReact.ReactChildrenReact.ComponentSpec(usecreateReactClass.ComponentSpecinstead)React.Mixin(usecreateReactClass.Mixininstead)React.ClassicElement<Props>(usecreateReactClass.ClassicElement<Props, InstanceType<T>>React.ClassicComponentClass(usecreateReactClass.ClassicComponentClass)React.ClassicComponent(usecreateClass.ClassicComponent)deprecated-prop-types-types) Remove deprecatedReact.Requireable(usepropTypes.Requireable)deprecated-prop-types-types) Remove deprecatedReact.Validator(usepropTypes.Validator)deprecated-prop-types-types) Remove deprecatedReact.ValidationMap(usepropTypes.ValidationMap)deprecated-prop-types-types) Remove deprecatedReact.WeakValidationMap(usepropTypes.WeakValidationMap)Type changes to reflect runtime changes
enableFormActionsandenableAsyncActionsbigint,PromiseandReact Context(see [react] Revert "Allow React context in ReactNode" #69347 for why no context yet)enableNewBooleanPropsrequestFormResetonCaughtError,onUncaughtErrorcreateFactorydefaultPropson everything but class componentsRemoveStop typingpropTypesrenderfindDOMNoderenderToNodeStreamhydrateunmountComponentAtNodeunstable_renderSubtreeIntoContainertest-utilsbutactErrorInfo#digestenableFloat<Context>to mean<Context.Provider>enableRefAsPropsrefcleanup functionsReact.actreact-test-renderer/shallowcodemods: eps1lon/types-react-codemod#314
Work-in-progress PR (changes to to 3rd party libraries using deprecated changes will be cherry-picked separately to keep the diff small): Pending
Beta Was this translation helpful? Give feedback.
All reactions