I am trying to use React Hooks at all time so I avoid using classes. During the recent code review one of my coworkers recommended me rewriting my component using a class component instead of a functional component that used Hooks. His argument was that every time that my component is rendered all the 'inner member functions' are created again and that might result in worse performance. I was under the impression that React team wanted people to ditch classes whenever possible. Does having a lot of helper functions inside of a stateless functional component would really result in bad performance? 

```
const Foo = () => {
   const helper = () => {
      doSomething()
   }
   return (<View />)
 }

OR

class Bar extends Component {
   helper = () => {
      doSomething()
   }
   render() {
      return (<View/>)
   }
}

```