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.
1import React from 'react'
2
3const buttons = () => {
4 return (
5 <div>
6
7 </div>
8 )
9}
10
11export default buttons