We are working with the dropdown menu in the Plasmic Settings panel, and we’d like to bind its selected values to the state in our React component. Could you guide us on how to locate the dropdown in the code and connect it to the useState hooks we’ve set up?
Hi, I want to sync like the ‘color’ state of my component with the dropdown in Plasmic Studio’s settings panel, so that selecting a different option will update the state accordingly.
Yes, that’s what AntD component is doing, if your component state is being kept in sync with plasmic studio prop, it’s actually quite similar to registering a prop, but as you also want to have the state functionalities, you need to do some extra registering