<div id="root" />
.simple {
color: red;
}
View Compiled
class SimpleComponent extends React.Component {
render() {
return (
<div className="simple">
<h1>Hello, React!</h1>
</div>
)
}
}
React.render(<SimpleComponent />, document.getElementById('root'))
View Compiled
This Pen doesn't use any external CSS resources.