Created
August 16, 2017 00:55
-
-
Save davelnewton/1214c9bb3f7103ff3d0264a95892c999 to your computer and use it in GitHub Desktop.
Header and Title Components
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 Title = ({ title }) => | |
<div> | |
<h2>{title}</h2> | |
</div> | |
const Heading = ({ info }) => | |
<div> | |
{info.map(x => <Title title={x.title} />)} | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment