Skip to content

Commit bcf40a7

Browse files
committed
Add button to fixture
1 parent 4275b51 commit bcf40a7

File tree

1 file changed

+8
-0
lines changed
  • fixtures/view-transition/src/components

1 file changed

+8
-0
lines changed

fixtures/view-transition/src/components/Page.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@ export default function Page() {
3838
);
3939
return (
4040
<div>
41+
<button
42+
onClick={() => {
43+
startTransition(() => {
44+
setShow(show => !show);
45+
});
46+
}}>
47+
{show ? 'A' : 'B'}
48+
</button>
4149
{show ? (
4250
<div>
4351
{a}

0 commit comments

Comments
 (0)