Help do that, pls.
The RainbowFrame component should receive an array of colors as props and build multiple nested frames, one for each color (in any order). Inside the frames should be the content that is nested in the RainbowFrame tag.
How can implement this component, at least in native JS. Not necessarily in React.
2
Answers
Index.jsx
RainbowFrame.jsx
What I would do is run the .map() on array and make it return the component for each element of the array. Try checking out the mapping with react!