So I'm pretty new to Reactjs and gatsby and learn as I go. I have a client website that was built on react and gatsby and sanity. And I thought something simple to add turns out I'm at a stump.
my question is, how do I implement an onclick they provided?
<script data-api-key="the API Key provided by Schedule Engine" data-defer="true" id="se-widget-embed" src="https://embed.scheduleengine.net/schedule-engine-v3.js"></script>
is the script to add to the body or head and to Activate the CTA they also sent this
<button class="se-widget-button" type="button" onclick="ScheduleEngine.show()">Book Now!</button>
I tried adding it as onClick"ScheduleEngine.show()" to a button, but it's giving me an error.
Please go easy on me :)