The LeaderBoard-Component:
When the component will mount this component loads the API-datas and give it as a property to the TableBody
The TableBody-Component:
It will display the datas that the LeaderBoars-Componets gives him as a property
The TableHead-Compnent: No comes the problem
When someone will click to sort by recent or alltime, how can this component update the TableBody-Component?
Or is can childcomponents talk to each other?
One answer could be, that I only have one component. But I think that there has to be 3 Components… or am I wrong?
It looks like you are currently editing your code, because it keeps changing all the time, but general idea is that you should either use this.setState() in processRequest(e) or use Promises.
It doesn’t store anything, hover over blue i symbol in console and you’ll see what it stores.