Last active
July 18, 2017 21:05
-
-
Save MikeDigitize/7c9cbfa38832bbc462a28bb27dc00e51 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
// choose an attribute style | |
const AwesomeComponent = ({ onAwesomeHappening }) => ( | |
<div className={`${styles.awesomeHolder}`}> | |
<span | |
data-mode="awesome-mode" | |
data-tagging="awesome-btn-click" | |
className={`${styles.awesomeBtn}`} | |
onClick={ () => onAwesomeHappening('Awesome!') }> | |
Save | |
</span> | |
</div> | |
); | |
// or | |
const AwesomeComponent = ({ onAwesomeHappening }) => ( | |
<div className={`${styles.awesomeHolder}`}> | |
<span data-mode="awesome-mode" data-tagging="awesome-btn-click" className={`${styles.awesomeBtn}`} onClick={ () => onAwesomeHappening('Awesome!') }> | |
Save | |
</span> | |
</div> | |
); | |
// HTML? | |
<header class="accordionHeader" data-tagged="true" data-tag="WT.z_pinteract" data-tag-value="Key Information"> | |
<h3 class="sectionTitle">Key Information</h3> | |
<a class="expand"></a> | |
</header> | |
// or | |
<header | |
class="accordionHeader" | |
data-tagged="true" | |
data-tag="WT.z_pinteract" | |
data-tag-value="Key Information"> | |
<h3 class="sectionTitle">Key Information</h3> | |
<a class="expand"></a> | |
</header> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment