frankcollins3 / PHPokedex

react concepts
0 stars 0 forks source link

setState() not when exported as child of exported Provider [9:10pm] #7

Closed frankcollins3 closed 1 year ago

frankcollins3 commented 1 year ago

In general this useContext is not working either.

Screen Shot 2023-03-13 at 9 07 59 PM

Screen Shot 2023-03-13 at 9 08 45 PM

never exported the same very setState() function but doing this is as a test.

Screen Shot 2023-03-13 at 9 10 31 PM

frankcollins3 commented 1 year ago

👎 gameOn works but playing() which invokes setState() correspondent to string variable: gameOn ---> setGameOn doesn't work