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
However, the styleguide is not describing every use-case. There are some topics where we might want to differ. Feel free to add points to the list.
Functions
Named functions vs. arrow functions: when is it ok (debugging info) to use arrow functions and when should we definitely use named functions (e.g. return functions of useEffect) - what is the complexity/length threshold? -> arrow functions when one-liners, binding this context, and expressions
The text was updated successfully, but these errors were encountered:
Basic styleguide: https://ts.dev/style/
However, the styleguide is not describing every use-case. There are some topics where we might want to differ. Feel free to add points to the list.
Functions
useEffect
) - what is the complexity/length threshold? -> arrow functions when one-liners, bindingthis
context, and expressionsThe text was updated successfully, but these errors were encountered: