1import React from 'react'; // get the React object from the react module
2
3class HelloWorld extends React.Component {
4 render() {
5 return <p>Hello, world!</p>;
6 }
7}
8
9export default HelloWorld; // expose the HelloWorld component to other modules