skip to Main Content

Javascript – Passing array as prop to component

I have a component that I am trying with various props that I want to pass. One of which being an array (tags): <RandomItem propOne="alphabet" propTwo="numbers" propThree="months" propFour="days" propFive="weeks" tags={["alpha", "bravo", "charlie"]} /> the structure for the RandomItem component is…

VIEW QUESTION
Back To Top
Search