I\'m new to React and trying to get a handle on syntax.
I\'m developing in a React 15 environment (using the react-starterify template) and have been using the synt
To be added, from react 15.5.0, React.createClass will be deprecated. They recommend you to move to ES2015 class or use arrow function.
When React was initially released, there was no idiomatic way to create classes in JavaScript, so we provided our own: React.createClass.
Later, classes were added to the language as part of ES2015, so we added the ability to create React components using JavaScript classes. Along with functional components, JavaScript classes are now the preferred way to create components in React.
For your existing createClass components, we recommend that you migrate them to JavaScript classes.