Skip to content

Instantly share code, notes, and snippets.

@justgage
Created November 11, 2018 14:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justgage/1a0f800ee734a61593e909a2ace40864 to your computer and use it in GitHub Desktop.
Save justgage/1a0f800ee734a61593e909a2ace40864 to your computer and use it in GitHub Desktop.
A way to add classnames easier
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