You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.The text was updated successfully, but these errors were encountered: