I saw that some libraries like Ant Design have components that look like this:
<Form.Item></Form.Item>
As we can see, the component above is created like a object, using . -> Form.Item.
Can someone give a simple example of how to create components like this? I don't understand how they are created. I understand when I create a <Nav/> component, but not how to create a component what will be extended with a ., like <Nav.Home/> or <Nav.Common/>. Thanks.