Created
March 24, 2020 20:39
-
-
Save Oluwa-nifemi/e2fe82d736634c5199e48ab98cab6eee to your computer and use it in GitHub Desktop.
Classnames function for react
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
export const classNames = (...classes) => | |
classes.filter((className) => className).join(" "); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment