score:1

you are accessing the state wrong. your component state is accessible inside this.state property. ie, the value movieanswer is available inside the this.state property.

simply change all your state items to below,

console.log("get set ? ",this.state.movieanswer)

also change this.actoranswer to,

this.state.actoranswer

also i don't think you need those return statements at the end of fetchpersonfunction and fetchmoviefunction functions.


Related Query

More Query from same tag