Skip to content

Instantly share code, notes, and snippets.

@putheakhem
Created November 20, 2017 15:36
Show Gist options
  • Save putheakhem/69af79fde6535dd0cc7215805592f00c to your computer and use it in GitHub Desktop.
Save putheakhem/69af79fde6535dd0cc7215805592f00c to your computer and use it in GitHub Desktop.
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
export default class Example extends Component {
render() {
return (
<div className="container">
<div className="row">
<div className="col-md-8 col-md-offset-2">
<div className="panel panel-default">
<div className="panel-heading">Example Component</div>
<div className="panel-body">
I'm an example component!
</div>
</div>
</div>
</div>
</div>
);
}
}
if (document.getElementById('example')) {
ReactDOM.render(<Example />, document.getElementById('example'));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment