DEV Community

Ankit Kanojia
Ankit Kanojia

Posted on

1 1

Answer: ReactJs add class to this button

Here is the dynamic button binding with handled click event separately, Even added Axios API call so that in API response you can remove loading on that button as well.

Here is a working demo

const {
    Button
} = semanticUIReact


class App extends React.Component {

Top comments (0)

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay