DEV Community

Discussion on: React Antipatterns to Avoid

Collapse
 
pengeszikra profile image
Peter Vivo

If you use functional react component with arrow functions instead class then you never face any bind problem.

Collapse
 
aumayeung profile image
John Au-Yeung

Yes. Function components avoid any use of this so you won't have to worry about bind.

And arrow functions is even cleaner.