I am using Polaris for my shopify app development, but with HTML code (provided in polaris documentation) and
the problem is that there is no functionality on those elements. so do i have to use javascript or jquery for making them dynamic content?? if yes then how tot embedd that ??
$(document).ready(function(){
$("#your-button-id").click(function(){
// Code to execute when button is clicked
});
});
Also, when using the Shopify Polaris library alongside React, you can use React’s built-in event handling and state management to create dynamic behavior. If you’re not using React, then you’ll need to use JavaScript to add that behavior.