Why use React CreateReactClass?

You can use createReactClass if you don't want to use ES6 in your project since Class keyword is ES6 specification. You can read more in React doc


Originally, React.createClass was the only way you declared components. Class components and functional stateless components were added later. With the release of React 16, React.createClass was removed, but it was moved to the separate create-react-class package to make upgrading easier on codebases that relied heavily on React.createClass. You can read a bit more about the deprecation of React.createClass here

So the example for that project is just using the create-react-class package, but you should be able to use a class or function component instead.