December 2019
Intermediate to advanced
598 pages
12h 21m
English
Let's implement an answer form on the question page using the following steps:
import { Form } from './Form';import { Field } from './Field';
<Fragment> <p ... > {question.content} </p> <div ... > {`Asked by ${question.userName} on${question.created.toLocaleDateString()} ${question.created.toLocaleTimeString()}`} </div> <AnswerList data={question.answers} /> <div css={css` margin-top: 20px; `} > <Form submitCaption="Submit Your Answer"> <Field name="content" label="Your Answer" type="TextArea" /> </Form> </div></Fragment>
So, the form will contain a single field for the answer ...
Read now
Unlock full access