[react] Types for 19 #64451
Replies: 11 comments 2 replies
-
Leaving a link to #69635 in case it's relevant |
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.
-
Added deprecation of types related to |
Beta Was this translation helpful? Give feedback.
-
Deprecated |
Beta Was this translation helpful? Give feedback.
-
Added |
Beta Was this translation helpful? Give feedback.
-
fyi: pinned for improved transparency |
Beta Was this translation helpful? Give feedback.
-
Added scoped instead of global namespace: #64464 |
Beta Was this translation helpful? Give feedback.
-
Added #64896 |
Beta Was this translation helpful? Give feedback.
-
This one? #64099 |
Beta Was this translation helpful? Give feedback.
-
Added "default |
Beta Was this translation helpful? Give feedback.
-
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.
-
React 19 is not released. This issue is meant to collect type-related breaking changes we want to ship with the next major:
P
ofReactElement
tounknown
I 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.RefObject
will not includenull
by default: [react] Make all refs mutable by defaultuseref-required-initial
) Require initial value foruseRef
: [react] Require initial value foruseRef
#64920scoped-jsx
) Remove deprecated globalJSX
namespace: [react] Add JSX namespace to React namespace #64464React.SFCFactory
deprecated-react-text
) Remove deprecatedReact.ReactText
deprecated-react-child
) Remove deprecatedReact.ReactChild
deprecated-react-node-array
) Remove deprecatedReact.ReactNodeArray
ReactFragment
deprecated-void-function-component
) Remove deprecatedReact.VFC
deprecated-void-function-component
) Remove deprecatedReact.VoidFunctionComponent
React.ReactChildren
React.ComponentSpec
(usecreateReactClass.ComponentSpec
instead)React.Mixin
(usecreateReactClass.Mixin
instead)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
enableFormActions
andenableAsyncActions
bigint
,Promise
andReact Context(see [react] Revert "Allow React context in ReactNode" #69347 for why no context yet)enableNewBooleanProps
requestFormReset
onCaughtError
,onUncaughtError
createFactory
defaultProps
on everything but class componentsRemoveStop typingpropTypes
render
findDOMNode
renderToNodeStream
hydrate
unmountComponentAtNode
unstable_renderSubtreeIntoContainer
test-utils
butact
ErrorInfo#digest
enableFloat
<Context>
to mean<Context.Provider>
enableRefAsProps
ref
cleanup functionsReact.act
react-test-renderer/shallow
codemods: 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