loading...

Discussion

markdown guide
 

I'm taking a look at your useStats hook and it seems to be correct.

What sort of errors are you running into?

 

Hi Emma,
I don't run in any error but I am not able to see the data of the components GraphData and LastUpdate.

 

It seems like Stats has state. If you wanted to pass state from Stats to your Graph + LastUpdate You'd need to set the state of IndexPage.

 

I haven't worked with it yet, but there's also a Context hook that apparently lets you skip passing through props.