This is surely a version problem, If you are starting fresh, I would suggest you to create a React component
by extending React.Component
rather than using React.createClass
since its deprecated from version 16.0
onwards and has been moved to a separate package 'create-react-class'
as @Dream_Cap also mention
Also go with the ES6 syntax for imports. You would modify your code to
import React from 'react';
export default class App extends React.Component {
render(){
return(
<div>
<h1> the list </h1>
</div>
)
}
}