I've seen some libraries use dot notation components in React
e.g.
<Menu>
<Menu.Item>Item 1</Menu.Item>
<Menu.Item>Item 2</Menu.Item>
</Menu>
this is using the static keyword in the class component e.g.
const Item = () => ...code
class Menu extends Component {
static Item = Item
...code
Since functional components with React hooks aren't class Components, can this pattern still be used somehow with functional components (e.g. accessing the prototype or something?)
Can this still be done?