How do you write JS code to interact with specific elements?

Hi! l am new to Plasmic, just wondering how you are able to write JS code to interact with specific elements you added with Plasmic? Like if l added a button, how do l write an event listener for that button?

Hi! You’d pass in the event listener from your code where you’re rendering the Plasmic component. See https://docs.plasmic.app/learn/react-api/