In functional components, I have some state object data and I update it via setData() call.
data
setData()
If I have someFunction() that i need to
someFunction()