Created
July 9, 2019 17:52
-
-
Save SephReed/60e0f002dbd0082b611ea716ad0546b5 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
return div("user-div", { | |
// shortcut for adding/removing classnames based off state | |
ddxClass: () => state.userSelected ? "--selected" : "", | |
// shortcut for general purpose SDx manipulation | |
ddx: (userDiv) => userDiv.tabIndex = state.userTabIndex | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment