December 2019
Intermediate to advanced
598 pages
12h 21m
English
Follow these steps to create a component that will render a list of answers:
import { FC } from 'react';import { AnswerData } from './QuestionsData';/** @jsx jsx */import { css, jsx } from '@emotion/core';import { Answer } from './Answer';import { gray5 } from './Styles';
So, we are going to use an unordered list to render the answers without the bullet points. We have referenced a component, Answer, that we'll create later in these steps.
interface Props { data: AnswerData[];}
Read now
Unlock full access