We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22a3484 commit cddfe3cCopy full SHA for cddfe3c
packages/react-router/src/utils.ts
@@ -4,6 +4,7 @@ import * as React from 'react'
4
// React 18 with Webpack, which statically analyzes imports and fails when it
5
// sees React.use referenced (since 'use' is not exported from React 18).
6
// This uses a dynamic string lookup to avoid the static analysis.
7
+// eslint-disable-next-line prefer-const -- Must be `let` to prevent bundler constant-folding
8
let REACT_USE = 'use'
9
10
/**
0 commit comments