Question: (b) [4 marks] Given the code segment modifiod frven (a) th (c) The return part ismissing. Use aloop to dynumically gencrate the contents. Now: 1.
(b) [4 marks] Given the code segment modifiod frven (a) th (c) The return part ismissing. Use aloop to dynumically gencrate the contents. Now: 1. Yon mav assume MuComponent defined in fa) is avzilable to voee 2. Do NC) change chter parts of the codes: Your answer: const Exan: React, FC = function () I return kdivs fyourcosesDere=1 k/div) (c) [4 marks] Following (b), now we want to display the number of enabled items (in dataArray). Complete the follonaing code segmert. Note: Do NOI change other parts of the codes
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
