If you mean the "updateTheme" method, it's meant to be an example of a method that can do more than just updating the theme state. For example, it could be a method that triggers a fetch request, in which updating the state is not a direct step.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
If you mean the "updateTheme" method, it's meant to be an example of a method that can do more than just updating the theme state. For example, it could be a method that triggers a fetch request, in which updating the state is not a direct step.