Skip to content
Advertisement

Unable to Pass multiple functions to onClick button in material UI

I have a button that looks like:

JavaScript

The button only calls the first function passed to onClick send button. How do make it so that both functions are called?

Advertisement

Answer

JavaScript

Then change to onClick={onSendMsg}

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement