Chap05 -> Using route parameters -> Implementing more of the question page -> 7. Implement question content
parent
b5f12380b3
commit
527d00be86
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue