Question: (b) [5 marks] Given the code segment modified from (a) intupcest Roact froct' 'react' cumat MyProduct React.F CeCemputerPruduct> = in Nuume MyProdust aniweted in (a)
(b) [5 marks] Given the code segment modified from (a) intupcest Roact froct' 'react' cumat MyProduct React.F CeCemputerPruduct> = in Nuume MyProdust aniweted in (a) w availade for iese of conat productArray = [poodect1, jrodact2, peodaxti3] const Probucts: React.FC = function () I theien cdiv? cidiv> erport defadt Products; The return part is missing. Use a loop to dynamically generate the contents. Note: 1. You may assume MyProduct answered in (a) is available for use 2. Do NOT change other parts of the codes Your answer: count Protocts: Resct.FC = function (3) I fotarn Cliv>
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
