Chap05 -> Using route parameters -> Implementing more of the question page -> 7. Implement question content

master
Jason Zhu 2022-03-30 14:38:16 +11:00
parent b5f12380b3
commit 527d00be86
1 changed files with 12 additions and 0 deletions

View File

@ -40,6 +40,18 @@ export const QuestionPage = () => {
>
{question === null ? '' : question.title}
</div>
{question !== null && (
<React.Fragment>
<p
css={css`
margin-top: 0px;
background-color: wheat;
`}
>
{question.content}
</p>
</React.Fragment>
)}
</div>
Question Page {questionId}
</Page>