DEV Community

Discussion on: Run Function after useEffect to Manipulate Data?

Collapse
 
anfo000 profile image
anfo000

Hi Mitchell... The kevin convert is not returning any jsx... That's why you are getting that error..

If you want to convert and show the farenheit maybe return some

{temperature}

.

Also you are not passing any prop to the kelvinconvert component.

Collapse
 
mitchelln11 profile image
mitchelln11

So the following doesn't return anything?

return {temperature};

Also, how do you pass info to the props from 1 component to another after the initial fetch/axios call?