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
Hi everyone, currently TypeScript users use the Component and Props types to complete the type association, but I've introduced an alternative way that avoids the need for Component and Props. It involves using a render function in object format, for example:
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone, currently TypeScript users use the
ComponentandPropstypes to complete the type association, but I've introduced an alternative way that avoids the need forComponentandProps. It involves using a render function in object format, for example:As you can see, the syntax is more compact and avoids the need to create a function to reference the
propsandstylesproperties.I will be attentive to your feedback on this idea.
Note
Note: This is not intended to deprecate the current syntax
Beta Was this translation helpful? Give feedback.
All reactions