Using styled-jsx for with-jest example. (#1052)

This commit is contained in:
Arunoda Susiripala 2017-02-09 19:14:52 +05:30 committed by GitHub
parent 355c984ed8
commit 57b6e9a71b
2 changed files with 9 additions and 2 deletions

View file

@ -1,6 +1,8 @@
exports[`With Snapshot Testing App shows "Hello world!" 1`] = `
<div>
<p>
<div
data-jsx={2648947580}>
<p
data-jsx={2648947580}>
Hello World!
</p>
</div>

View file

@ -1,5 +1,10 @@
export default () => (
<div>
<style jsx>{`
p {
color: red;
}
`}</style>
<p>Hello World!</p>
</div>
)