Chap03 -> Creating function-based components -> Creating HomePage child components

Chap03
Jason Zhu 2022-03-25 13:26:47 +11:00
parent 2d0e56055c
commit d54f501934
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
import React from 'react';
import { QuestionData } from './QuestionsData';
interface Props {
data: QuestionData[];
}
export const QuestionList = ({ data }: Props) => (
<ul>
{data.map((question) => (
<li key={question.questionId}></li>
))}
</ul>
);