Use the hook useNhostClient to get the Nhost JavaScript client (https://docs.nhost.io/reference/javascript).
useNhostClient
const nhost = useNhostClient()