07-25-2021 09:06 - edited 07-25-2021 09:10
07-25-2021 09:06 - edited 07-25-2021 09:10
how do I force a toggle in /settings/index.jsx to be true when the user installs the app for the first time?
I've tried this at the end of the file
props.settingsStorage.setItem('myToggle', 'true')
but I get: Uncaught ReferenceError: props is not defined
If I place that statement inside the function where props was passed, I get
07-25-2021 09:11
07-25-2021 09:11
I overlooked the fact that I accidentally threw it inside of a return statement 😖🤦:male_sign:
Everything is ok