I am writing a frontend for a site using React JS, I have 2 buttons in the template that look nothing different, I created a component for this button, it renders, everything is fine.
But, I need these two buttons to have different behavior when clicking, how is it better to set this behavior? Somehow to trace two components? Delegate another component? Or is there some kind of decoration system? Impurities? Please tell me how to be better :)