Chap03 -> Creating function-based component -> Children props, added explanation
parent
affd03b580
commit
f833534d19
|
@ -8,7 +8,8 @@ export const HomePage = () => (
|
||||||
<Page>
|
<Page>
|
||||||
<div>
|
<div>
|
||||||
<PageTitle>Unanswered Questions</PageTitle>
|
<PageTitle>Unanswered Questions</PageTitle>
|
||||||
<button>Ask a question</button>
|
<button>Ask a question</button>{' '}
|
||||||
|
{/* This button component is passed as children of Page */}
|
||||||
</div>
|
</div>
|
||||||
<QuestionList data={getUnansweredQuestions()} />
|
<QuestionList data={getUnansweredQuestions()} />
|
||||||
</Page>
|
</Page>
|
||||||
|
|
Loading…
Reference in New Issue