Fix prop-types warning with conditionally-rendered menu content
Conditionally rendered items create boolean `false` entries in the `children` prop when the condition is false. To indicate that there are no special restrictions on the `children` prop here beyond them being some kind of renderable content, I've opted for the `any` prop type.
Showing
Please register or sign in to comment