Created
February 20, 2018 20:24
-
-
Save jm2242/cff68ad9c36fd8d22b2cdcb8730e44c8 to your computer and use it in GitHub Desktop.
Cleaner partial solution
This file contains 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
render() { // render method of component | |
// ... | |
<div className={`column-icons-${numberOfButtons}`} | |
{ canHideColumns && renderHideColumnsTrigger() } | |
{ canSort && renderSortingIndicator() } | |
{ canSearch && renderSearchTrigger() } | |
{ canRemoveColumns && <RemoveColumnButton /> } | |
{ canAddColumns && <AddColumnButton } | |
</div> | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment