Created
October 24, 2016 17:57
-
-
Save tuxsudo/ab63177bc2591a7eb7dd118cf7242e68 to your computer and use it in GitHub Desktop.
An example of a component that will just pass along all props
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
const Component = ({title, subtitle, className, ...props}) => ( | |
<a className={`myClass ${className}`} {...props}> | |
<h1>{title}</h1> | |
<h2>{subtitle}</h2> | |
</a> | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment