Skip to content

Instantly share code, notes, and snippets.

@henrikhaugboelle
Created August 9, 2017 10:47
Show Gist options
  • Save henrikhaugboelle/50a6a1d3afee512e53ef9fee32be10b7 to your computer and use it in GitHub Desktop.
Save henrikhaugboelle/50a6a1d3afee512e53ef9fee32be10b7 to your computer and use it in GitHub Desktop.
// Import dependencies
import React, { Component } from 'react'
// Import styles
import styles from './Panes.scss'
class Panes extends Component {
render() {
return (
<div className={styles.Panes}>
{this.props.children}
</div>
)
}
}
// Export component
export default Panes
// --- Instead of ---
<div class="panes">
<div id="template-slot"></div>
</div>
// Note: A bit of a 'skewed' example of course, but I found it funny when I just wrote it and thought about it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment