From d54f5019343d9583ab5acf8c8f537866709e49e4 Mon Sep 17 00:00:00 2001 From: Jason Zhu Date: Fri, 25 Mar 2022 13:26:47 +1100 Subject: [PATCH] Chap03 -> Creating function-based components -> Creating HomePage child components --- QandA/frontend/src/QuestionList.tsx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 QandA/frontend/src/QuestionList.tsx diff --git a/QandA/frontend/src/QuestionList.tsx b/QandA/frontend/src/QuestionList.tsx new file mode 100644 index 0000000..2488454 --- /dev/null +++ b/QandA/frontend/src/QuestionList.tsx @@ -0,0 +1,14 @@ +import React from 'react'; +import { QuestionData } from './QuestionsData'; + +interface Props { + data: QuestionData[]; +} + +export const QuestionList = ({ data }: Props) => ( + +);