Last active
April 17, 2020 00:32
-
-
Save byronwade/39d8256a7454f5e09126f832e051c38b to your computer and use it in GitHub Desktop.
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
/* when this paragraph block is used on another page it will take the props and pass it down to the tag */ | |
/* if no class name then we can use a default */ | |
/* we add the rest as styled props on the 'p' tag */ | |
/* this is your component using the props passed down to it */ | |
<p className="{{this.props.className}}">this.props.content</p> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment