I've exported with patch-package a few types, which are useful when creating own JSX components: ClassName, PropsWithChildren<T>, ReactNode, ReactElement and probably more in the future. In React all these are accessible via React namespace.
As a side note, since JSX tags are not properly recognized by typescript, I've ended up replacing following definition: export type ReactElement = HTMLElement (removed SVG). Otherwise it'd be a mess to use jsx-dom with libs like jQuery.
I've exported with
patch-package
a few types, which are useful when creating own JSX components:ClassName
,PropsWithChildren<T>
,ReactNode
,ReactElement
and probably more in the future. In React all these are accessible viaReact
namespace.As a side note, since JSX tags are not properly recognized by typescript, I've ended up replacing following definition:
export type ReactElement = HTMLElement
(removed SVG). Otherwise it'd be a mess to use jsx-dom with libs like jQuery.