You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<ButtononClick={functiononClick(e){returnconsole.log(e);}}>
Click me
</Button>
This cast is not only visually bad, it also changes the function behavior since an arrow function passes the this value from the context and not function. We might want to use "this" inside the callback function to alter the parent component state.
By the way, this library is very useful ! Thanks 👍
The text was updated successfully, but these errors were encountered:
Hi, I have the following component:
But it is transformed to this instead:
This cast is not only visually bad, it also changes the function behavior since an arrow function passes the this value from the context and not function. We might want to use "this" inside the callback function to alter the parent component state.
By the way, this library is very useful ! Thanks 👍
The text was updated successfully, but these errors were encountered: