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 am having problems again and again with the type definitions included in preact.
(Type of event handlers, of children). Most all the examples you find are using react's own types anyway.
Would it be fine if I just use @types/react?
After all, the types are just present at compile time anyway and preact is (pretty much) compatible with react.
Also that would make moving from react to preact (or vice versa) much easier.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am having problems again and again with the type definitions included in preact.
(Type of event handlers, of
children
). Most all the examples you find are using react's own types anyway.Would it be fine if I just use @types/react?
After all, the types are just present at compile time anyway and preact is (pretty much) compatible with react.
Also that would make moving from react to preact (or vice versa) much easier.
Beta Was this translation helpful? Give feedback.
All reactions