Skip to content

Instantly share code, notes, and snippets.

@productioncoder
Last active September 9, 2018 17:48
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 productioncoder/619453166418a2db706ab1b981172fe2 to your computer and use it in GitHub Desktop.
Save productioncoder/619453166418a2db706ab1b981172fe2 to your computer and use it in GitHub Desktop.
export function MyCustomComponent(props) {
return (
<div>
<p>MyCustomComponent paragraph 1</p>
<p>MyCustomComponent paragraph 2</p>
</div>
)
}
export function ParentComponent(props) {
return (
<div>
<p>Just a paragraph</p>
<MyCustomComponent/>
</div>
);
}
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ParentComponent`] = `
<div>
<p>Just a paragraph</p>
<MyCustomComponent/>
</div>
`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment