I have a function which is intended to call an API for some data, and then set the data object equal to a value in state so it can be used elsewhere in my app. My example is