This is a React introduction.
Follow the step by step tutorial by switching branches.
Create ./app/component/App.js with the following content
import React from 'react';
class App extends React.Component {
render () {
return (
<div>
<h1>Hello World</h1>
<p>This is a test app.</p>
</div>
);
}
}
export default AppUpdate ./app/main.js with the following content
import React from 'react';
import App from './component/App';
React.render(
<App />,
document.getElementById('react-root')
);npm run build
open dist/index.html