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
Extend existing components’ props if possible, especially when a component internally forwards its props to another component in the package.
If the component forwards its ...restProps to an underlying element/component, you should use the WordPressComponentProps type for the component's props:
Summary
Use this issue to track the progress of migration to typescript for menu-item component
🚧 Proposed PR:
MenuItem: Refactor to TypeScript
Reference
Prior effort PR
Migration on menu-items-choice, type discussion
Collection migration issue
Kick off discussion (on storybook)
Found a blog on the component as prop, it suits for
icon
issue but it also answer some question raised with the Navigator Context #19The text was updated successfully, but these errors were encountered: