Long story short when working in React, there are situations when I have to use arrow functions with () instead of {} and vice-versa.
const foo = (item) => ( ... );
and
const foo = (item) => { ... };
My code is often failing because I am confusing them. What, I am trying to understand is the difference between the two arrow functions. What are the best-case scenarios for both?
Many thanks!