# continuous

Is there an assumption over $X$ like Hausdorff? You can show that $g^{-1}(F)$ is closed for $F$ closed.