Chap03 -> Creating function-based component -> Children props, added explanation

master
Jason Zhu 2022-03-26 14:12:16 +11:00
parent affd03b580
commit f833534d19
1 changed files with 2 additions and 1 deletions

View File

@ -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>