Currently we pass the handleHover and handleUnhover props all the way down from index.js to Color component.
The technique of specifying child components as props in index.js does not work, as child components are rendered in a loop: I have no idea how to assign the key props etc. to each child component if the latter is passed as a prop.
Currently we pass the
handleHover
andhandleUnhover
props all the way down fromindex.js
toColor
component.The technique of specifying child components as props in
index.js
does not work, as child components are rendered in a loop: I have no idea how to assign thekey
props etc. to each child component if the latter is passed as a prop.