Chap03 -> Creating function-based components -> Creating HomePage child components
parent
2d0e56055c
commit
d54f501934
|
@ -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>
|
||||
);
|
Loading…
Reference in New Issue