UNPKG

@daimo/pay

Version:

Seamless crypto payments. Onboard users from any chain, any coin into your app with one click.

13 lines (10 loc) 367 B
import { useState, useEffect } from 'react'; /** Utility. Returns false on first render, true after. * Useful for apps with SSR, for example. */ function useIsMounted() { const [mounted, setMounted] = useState(false); useEffect(() => setMounted(true), []); return mounted; } export { useIsMounted as default }; //# sourceMappingURL=useIsMounted.js.map