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

Chap05
Jason Zhu 2022-03-30 14:38:16 +11:00
parent fa83caf8a7
commit dbb3d2f9b5
1 changed files with 12 additions and 0 deletions

View File

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