Skip to content

Instantly share code, notes, and snippets.

@MaximeHeckel
Last active April 15, 2018 07:33
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 MaximeHeckel/2f5f294e04977181112d6024fe3f7454 to your computer and use it in GitHub Desktop.
Save MaximeHeckel/2f5f294e04977181112d6024fe3f7454 to your computer and use it in GitHub Desktop.
<Article>
<Article.Title />
{/*
This will render if we use the sub-component pattern described in part 2,
but will be skipped with the one described in part 1 (the findByType util
mentioned in the post will simply not render "<div></div>" as it's not
a known sub-components of <Article/>.
*/}
<div>Hello World</div>
<Article.Metadata />
<Article.Content />
</Article>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment