but basically, if I pass a useState setter to a child, and I want to use flow to annotate the function, is there a way to do it without saying Function
as the flow type?
The Props you're passing in needs to be updated to
type Props = {
setShowUpdate: (boolean => boolean) => void,
}
You're passing a function that accepts a boolean and returns a boolean that is then passed into another function that returns void.