Hi everyone! I have two variables in one of my functions, but I just realized I will need to access them inside other functions aswell. Im not sure how I would be able to do that?
Here are the two variables I want to have access to:
function Template(props: ProjectProps)
{
const [selectedImage, setSelectedImage] = useState("");
const [showFullscreenImage, setShowFullscreenImage] = useState(false);
}