Last active
August 30, 2018 19:47
-
-
Save Shelob9/03437b564ead1102c559bed2c680ab4e 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
const Post = (props) => { | |
return ( | |
<div> | |
<h2>{props.post.title.rendered}</h2> | |
</div> | |
) | |
}; |
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 Posts = props => { | |
return ( | |
<div> | |
{props.posts.map(post => { | |
return <Post post={post} key={post.ID} />; | |
})} | |
</div> | |
); | |
}; |
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
wp scaffold plugin learn-gutenberg |
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
wp scaffold block hello-world --title="Hello World Block" --plugin=learn-gutenberg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment