showing results for - "use const when declaring an arrow function in react class component"
Farah
30 Jan 2017
1//Error:The 'const' modifier can only be used in TypeScript files.
2If you're creating an instance method(method inside a class component), 
3then no you don't need const. 
4
5If you're creating a generic (i.e. utility) function OUTSIDE of a component, 
6then yes you probably should use const.