Skip to content

Commit 15c5b28

Browse files
committed
revert package.json check in favor of React.version
1 parent a903406 commit 15c5b28

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

packages/core/src/hooks/useTransition.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import * as React from 'react'
2-
import { version as reactVersion } from 'react/package.json'
32
import { useContext, useRef, useMemo } from 'react'
43
import { Lookup, OneOrMore, UnknownProps } from '@react-spring/types'
54
import {
@@ -437,7 +436,7 @@ export function useTransition(
437436
<elem.type
438437
{...elem.props}
439438
key={is.str(t.key) || is.num(t.key) ? t.key : t.ctrl.id}
440-
ref={reactVersion < '19.0.0' ? elem.ref : elem.props.ref}
439+
ref={React.version < '19.0.0' ? elem.ref : elem.props.ref}
441440
/>
442441
) : (
443442
elem

tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
"allowSyntheticDefaultImports": true,
2727
"esModuleInterop": true,
2828
"skipLibCheck": true,
29-
"strictNullChecks": true,
30-
"resolveJsonModule": true
29+
"strictNullChecks": true
3130
}
3231
}

0 commit comments

Comments
 (0)