DEV Community

Sushil Kumar Mahato
Sushil Kumar Mahato

Posted on

How can we use onclick event in controller file and use it as props in web file it

I need to use onclick event as props in my code

Like this

{...this.handlechange} in controller file in React Typescript class components

And in web file I need to send props like this

<Button value={value} {...this.handlechange}> Next

And also I fails in sonar cube test

If anyone solve this…

Top comments (0)