I have a React component called Card that has an onclick function triggered when the card is pressed. However, within this component, there are child elements such as sliders and buttons that perform their own actions. When clicking on these child elements, I do not want the parent element to execute its onclick function or become "active."
What is the best way to prevent the parent's properties from being applied when clicking on a child component?