Skip to content

Commit

Permalink
[core] Simplify isReactVersionAtLeast
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Dec 11, 2024
1 parent 961523e commit 935e343
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/utils/reactVersion.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';

const majorVersion = parseInt(React.version.split('.')[0], 10);
const majorVersion = parseInt(React.version, 10);

type SupportedVersions = 17 | 18 | 19;

Expand Down

0 comments on commit 935e343

Please sign in to comment.