Created
November 11, 2018 14:50
-
-
Save justgage/1a0f800ee734a61593e909a2ace40864 to your computer and use it in GitHub Desktop.
A way to add classnames easier
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 React from "react"; | |
import classNames from "classnames"; | |
export const Div = props => { | |
const { children } = props; | |
console.log(props); | |
return <div className={classNames(props)}>{children}</div>; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment