Chap05 -> Using route parameters -> Implementing more of the question page -> 7. Implement question content
parent
fa83caf8a7
commit
dbb3d2f9b5
|
@ -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