This is a simple way to implement hCaptcha with Livewire component.
NOTE: please read this carefully, and adjust variable names, etc to your use case
Before using this implementation, add their JS library first on your page
<script src="https://js.hcaptcha.com/1/api.js?hl=en" async defer></script>