Last active
September 9, 2018 17:48
-
-
Save productioncoder/619453166418a2db706ab1b981172fe2 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
export function MyCustomComponent(props) { | |
return ( | |
<div> | |
<p>MyCustomComponent paragraph 1</p> | |
<p>MyCustomComponent paragraph 2</p> | |
</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
export function ParentComponent(props) { | |
return ( | |
<div> | |
<p>Just a paragraph</p> | |
<MyCustomComponent/> | |
</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
// 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