Hi FreeCodeCampers!
I’ve started with learning React JS and I am trying to solve the Twitch challenge. So far I’m just working with some dummy data to get some basic functionality working.
I’m stuck at passing on parameters (such as a button id) to the button onClick event. I’ve been getting results back ranging from ‘undefined’ to 'Codepen '(when passing attribute name as parameter).
Codepen result using: onClick={()=>this.refreshStatus(name)}
I’ve searched the net and saw multiple people asking this question. None of the given answers worked for me. Is there something wrong with the way my code is set up?
The project: https://codepen.io/tomfledderus/pen/RoMKaP
Any help or feedback on the code is really appreciated!