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}
|
{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>
|
||||||
|
|
Loading…
Reference in New Issue