Created
August 9, 2017 10:47
-
-
Save henrikhaugboelle/50a6a1d3afee512e53ef9fee32be10b7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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