GeezerVison is showing github.com — Codemod to import * as React from "react"; (#18102) · react/react@0934879
File treeExpand file treeCollapse file tree Open diff view settings react-devtools-inline/src react-devtools-shared/src/devtools react-devtools-shell/src/app unstable-native-dependencies
react-interactions/events/src/dom
Some content is hiddenLarge Commits have some content hidden by default. Use the searchbox below for content that may be hidden. Dismiss bannerExpand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: packages/create-subscription/src/createSubscription.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 7 | 7 | * @flow | 8 | 8 | */ | 9 | 9 |
| 10 | | -import React from 'react'; | | 10 | +import * as React from 'react'; | 11 | 11 | import invariant from 'shared/invariant'; | 12 | 12 |
| 13 | 13 | type Unsubscribe = () => void; | |
Collapse file Copy file name to clipboardExpand all lines: packages/react-art/src/ReactART.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 5 | 5 | * LICENSE file in the root directory of this source tree. | 6 | 6 | */ | 7 | 7 |
| 8 | | -import React from 'react'; | | 8 | +import * as React from 'react'; | 9 | 9 | import ReactVersion from 'shared/ReactVersion'; | 10 | 10 | import {LegacyRoot} from 'shared/ReactRootTags'; | 11 | 11 | import { | |
Collapse file Copy file name to clipboardExpand all lines: packages/react-cache/src/ReactCache.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 7 | 7 | * @flow | 8 | 8 | */ | 9 | 9 |
| 10 | | -import React from 'react'; | | 10 | +import * as React from 'react'; | 11 | 11 |
| 12 | 12 | import {createLRU} from './LRU'; | 13 | 13 |
| |
Collapse file Copy file name to clipboardExpand all lines: packages/react-devtools-inline/src/frontend.js +2-1Lines changed: 2 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | /** @flow */ | 2 | 2 |
| 3 | | -import React, {forwardRef} from 'react'; | | 3 | +import * as React from 'react'; | | 4 | +import {forwardRef} from 'react'; | 4 | 5 | import Bridge from 'react-devtools-shared/src/bridge'; | 5 | 6 | import Store from 'react-devtools-shared/src/devtools/store'; | 6 | 7 | import DevTools from 'react-devtools-shared/src/devtools/views/DevTools'; | |
Collapse file Copy file name to clipboardExpand all lines: packages/react-devtools-shared/src/devtools/ContextMenu/ContextMenu.js +2-7Lines changed: 2 additions & 7 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 7 | 7 | * @flow | 8 | 8 | */ | 9 | 9 |
| 10 | | -import React, { | 11 | | - useContext, | 12 | | - useEffect, | 13 | | - useLayoutEffect, | 14 | | - useRef, | 15 | | - useState, | 16 | | -} from 'react'; | | 10 | +import * as React from 'react'; | | 11 | +import {useContext, useEffect, useLayoutEffect, useRef, useState} from 'react'; | 17 | 12 | import {createPortal} from 'react-dom'; | 18 | 13 | import {RegistryContext} from './Contexts'; | 19 | 14 |
| |
Collapse file Copy file name to clipboardExpand all lines: packages/react-devtools-shared/src/devtools/ContextMenu/ContextMenuItem.js +2-1Lines changed: 2 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 7 | 7 | * @flow | 8 | 8 | */ | 9 | 9 |
| 10 | | -import React, {useContext} from 'react'; | | 10 | +import * as React from 'react'; | | 11 | +import {useContext} from 'react'; | 11 | 12 | import {RegistryContext} from './Contexts'; | 12 | 13 |
| 13 | 14 | import styles from './ContextMenuItem.css'; | |
Collapse file Copy file name to clipboardExpand all lines: packages/react-devtools-shared/src/devtools/cache.js +2-1Lines changed: 2 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 7 | 7 | * @flow | 8 | 8 | */ | 9 | 9 |
| 10 | | -import React, {createContext} from 'react'; | | 10 | +import * as React from 'react'; | | 11 | +import {createContext} from 'react'; | 11 | 12 |
| 12 | 13 | // Cache implementation was forked from the React repo: | 13 | 14 | // https://github.com/facebook/react/blob/master/packages/react-cache/src/ReactCache.js | |
Collapse file Copy file name to clipboardExpand all lines: packages/react-devtools-shared/src/devtools/views/Button.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 7 | 7 | * @flow | 8 | 8 | */ | 9 | 9 |
| 10 | | -import React from 'react'; | | 10 | +import * as React from 'react'; | 11 | 11 | import Tooltip from '@reach/tooltip'; | 12 | 12 |
| 13 | 13 | import styles from './Button.css'; | |
Collapse file Copy file name to clipboardExpand all lines: packages/react-devtools-shared/src/devtools/views/ButtonIcon.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 7 | 7 | * @flow | 8 | 8 | */ | 9 | 9 |
| 10 | | -import React from 'react'; | | 10 | +import * as React from 'react'; | 11 | 11 | import styles from './ButtonIcon.css'; | 12 | 12 |
| 13 | 13 | export type IconType = | |
Collapse file Copy file name to clipboardExpand all lines: packages/react-devtools-shared/src/devtools/views/Components/Badge.js +2-1Lines changed: 2 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 7 | 7 | * @flow | 8 | 8 | */ | 9 | 9 |
| 10 | | -import React, {Fragment} from 'react'; | | 10 | +import * as React from 'react'; | | 11 | +import {Fragment} from 'react'; | 11 | 12 | import { | 12 | 13 | ElementTypeMemo, | 13 | 14 | ElementTypeForwardRef, | |
|