this.setState doesnt function ??

here i create a snack;

this.setState( level: levelPersisit) comes with correct value but the state never changes ??
line number 113

any help please

Hi! Thanks for uploading this snack. I don’t see how this is used in App.js so I can’t actually reproduce this. If you want to update the snack to make use of Game.js it might help. One thing I will point out right away is that eslint displays a number of warnings about undefined variables in that file, maybe one of those is preventing your code from running as you expect?

I have updated the slack please check it :slight_smile:

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.