I am trying to convert this code to not use state as I have heard using setState in _app.js is not recommended and leads to errors. I can\'t quite figure out how to do it. A