render a footer... like when you are using react-bootstrap and you can pass, <Card.Header> or not... any idea how to do it correctly?
Just make them separate components that can be put together, there isn't anything special to them. And for the pattern you just said, make a Card component and a Header component and then write Card.Header = Header before exporting the Card component, then you can use it as you mentioned
Обсуждают сегодня