0

Whats the difference, in terms of speed and performance of these two implementations:

export const MyComponent = ({ args }) => {
  ...
}

And:

class MyComponent extends React.Component {
  ...
}

Specifically about the render function in both of them.

pizzae
  • 2,815
  • 6
  • 26
  • 45
  • What kind of answers are you looking for? Real performance difference depends on the specific environment the code is running. If you are curious which one performs "better" in your specific use case, [profile your code](https://facebook.github.io/react/docs/perf.html)! – Felix Kling Dec 13 '16 at 05:48
  • 1
    Possible duplicate of [How will React 0.14's Stateless Components offer performance improvements without shouldComponentUpdate?](http://stackoverflow.com/q/33703817/218196) – Felix Kling Dec 13 '16 at 05:50

0 Answers0