React 컴포넌트 디자인중에

<Container>
  <Header>...</Header>
  <Content>...</Content>
  <Footer>...</Footer>
</Container>

이런식으로 Header, Content 등의 컴포넌트는 Container 아래에서만 유효하게 동작하는 방식이 있는데, 이게 진짜 장점이 있는지 궁금하다. 차라리 header, content 등의 props로 뚫어놓는게 낫지않나.

3

If you have a fediverse account, you can reply to this note from your own instance. Search https://hackers.pub/ap/notes/01976306-d12a-7ba9-b58d-0219d73ab7da on your instance and reply to it.