DEV Community

Discussion on: Run Function after useEffect to Manipulate Data?

anfo000 profile image

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



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

mitchelln11 profile image
mitchelln11 Author

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?