Skip to content

Commit b655f9b

Browse files
ferretwithaberetschiller-manuel
authored andcommitted
fix duplicate react import
1 parent c37d643 commit b655f9b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

packages/react-router/tests/router.test.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from 'react'
21
import { act, useEffect } from 'react'
32
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
43
import {
@@ -1101,14 +1100,14 @@ const createHistoryRouter = () => {
11011100
const navigate = useNavigate()
11021101

11031102
return (
1104-
<React.Fragment>
1103+
<>
11051104
<h1>Index</h1>
11061105
<button onClick={() => navigate({ to: '/' })}>Index</button>
11071106
<button onClick={() => navigate({ to: '/posts' })}>Posts</button>
11081107
<button onClick={() => navigate({ to: '/posts', replace: true })}>
11091108
Replace
11101109
</button>
1111-
</React.Fragment>
1110+
</>
11121111
)
11131112
}
11141113

@@ -1125,10 +1124,10 @@ const createHistoryRouter = () => {
11251124
const navigate = useNavigate()
11261125

11271126
return (
1128-
<React.Fragment>
1127+
<>
11291128
<h1>Posts</h1>
11301129
<button onClick={() => navigate({ to: '/' })}>Index</button>
1131-
</React.Fragment>
1130+
</>
11321131
)
11331132
},
11341133
})

0 commit comments

Comments
 (0)