Skip to content

Commit 9d98c39

Browse files
committed
fix: split client component
1 parent 19c20eb commit 9d98c39

2 files changed

Lines changed: 16 additions & 9 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
'use client';
2+
3+
export default function ErrorButton() {
4+
return (
5+
<button
6+
id="error-button"
7+
onClick={() => {
8+
throw new Error('E2E Test Error');
9+
}}
10+
>
11+
Throw Error
12+
</button>
13+
);
14+
}
Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
1-
'use client';
1+
import ErrorButton from './ErrorButton';
22

33
export default function ErrorPage() {
44
return (
55
<div>
66
<h1>Error Test Page</h1>
7-
<button
8-
id="error-button"
9-
onClick={() => {
10-
throw new Error('E2E Test Error');
11-
}}
12-
>
13-
Throw Error
14-
</button>
7+
<ErrorButton />
158
</div>
169
);
1710
}

0 commit comments

Comments
 (0)