0 votes
in ReactJS by
What is an arrow function and how is it used in React?

1 Answer

0 votes
by
An arrow function is a short way of writing a function to React.

It is unnecessary to bind ‘this’ inside the constructor when using an arrow function. This prevents bugs caused by the use of ‘this’ in React callbacks.

arrow
...