#alan95-react-loader
1 messages · Page 1 of 1 (latest)
@crimson wyvern https://stripe.com/docs/js/element/events/on_ready is the event telling you when the element is ready. So you could show a spinner until that event is fired and then hide it
thanks is there an example of this implemeted on react ?\
No I don't have a specific example but https://stripe.com/docs/stripe-js/react#element-components covers the onReady
is there anything for the useElements hook ?
I'm not sure I follow what you mean. Bear with me I barely understand React but what's blocking you?
i mean this is pretty much all the documentation about the ready event
onReady
optional (element: Element) => void
Triggered when the Element is fully rendered and can accept imperative element.focus() calls. Called with a reference to the underlying Element instance.
it doest say anything of how to use it
gotcha, give me a few minutes