is there a way to pass a function to the "updater" function that was provide by the `useState()`’s React Hooks?

I am exploring React Hooks and I come up with this code so far and is working.
right now is just getting a random gif from the giphy API and rendering on the screen when you clink the button.
import React, {useState} from ‘react’
import ‘….