The code: https://codesandbox.io/s/react-props-conditional-class-o1h6sh
The issue: When you put the child components (Card, Graph) inside the .map function it disrupts the independence of the click, such that clicking either fires all elements, in the case of the 'Card' component or fires both from the 'Graph' component.
The aim: Be able to click any of the 4 links and envoke the dynamic classname "is-red", changing the text colour on the clicked element leaving the others unaffected but persisting the state of the changed element, i.e have the option to toggle any of the four links on and off, whilst not affecting the toggle state of the others.
Passing props to the parent component from two sibling child components works fine, the issue is introduced by the data.map function in addition to nesting the 'Graph' component inside the 'Card' component.