Closed epubreader closed 1 year ago
Hey! Do you mean resetting the widget upon a success callback? You can use the ref
to reset the widget.
const ref = React.useRef()
return <Turnstile ref={ref} siteKey={siteKey} onSuccess={() => ref.current?.reset()} />
how to refresh turnstile when click the button?