Skip to content

Commit f7b798a

Browse files
committed
add test
1 parent cb1753b commit f7b798a

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

test/e2e/styled-jsx/pages/typescript.tsx

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,19 @@ interface Props {
22
color: string
33
}
44

5-
export default (p: Props) => (
6-
<div>
7-
<p>test</p>
8-
<style jsx>{`
9-
span {
10-
color: ${p.color};
11-
}
12-
`}</style>
13-
</div>
14-
)
5+
function Test(p: Props) {
6+
return (
7+
<div>
8+
<button>test</button>
9+
<style jsx>{`
10+
button {
11+
color: ${p.color};
12+
}
13+
`}</style>
14+
</div>
15+
)
16+
}
17+
18+
export default function Page() {
19+
return <Test color="red" />
20+
}

0 commit comments

Comments
 (0)