mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Fix Blocks fixture
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
import React, {
|
||||
useReducer,
|
||||
useEffect,
|
||||
useTransition,
|
||||
unstable_useTransition as useTransition,
|
||||
useCallback,
|
||||
useMemo,
|
||||
Suspense,
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import {unstable_createRoot as createRoot} from 'react-dom';
|
||||
import './index.css';
|
||||
import Router from './Router';
|
||||
|
||||
ReactDOM.createRoot(document.getElementById('root')).render(<Router />);
|
||||
createRoot(document.getElementById('root')).render(<Router />);
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
/* eslint-disable import/first */
|
||||
|
||||
import * as React from 'react';
|
||||
import {block} from 'react';
|
||||
import {unstable_block as block} from 'react';
|
||||
|
||||
// Server
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
/* eslint-disable import/first */
|
||||
|
||||
import * as React from 'react';
|
||||
import {block} from 'react';
|
||||
import {unstable_block as block} from 'react';
|
||||
import {fetch} from 'react-data/fetch';
|
||||
|
||||
// Server
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
/* eslint-disable import/first */
|
||||
|
||||
import * as React from 'react';
|
||||
import {block, Suspense} from 'react';
|
||||
import {unstable_block as block, Suspense} from 'react';
|
||||
|
||||
// Server
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
/* eslint-disable import/first */
|
||||
|
||||
import * as React from 'react';
|
||||
import {Suspense, SuspenseList} from 'react';
|
||||
import {Suspense, unstable_SuspenseList as SuspenseList} from 'react';
|
||||
import {preload} from 'react-data/fetch';
|
||||
|
||||
import loadPost from './Post.block';
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
/* eslint-disable import/first */
|
||||
|
||||
import * as React from 'react';
|
||||
import {block} from 'react';
|
||||
import {unstable_block as block} from 'react';
|
||||
|
||||
// Server
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
/* eslint-disable import/first */
|
||||
|
||||
import * as React from 'react';
|
||||
import {block, Suspense} from 'react';
|
||||
import {unstable_block as block, Suspense} from 'react';
|
||||
|
||||
// Server
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
/* eslint-disable import/first */
|
||||
|
||||
import * as React from 'react';
|
||||
import {block} from 'react';
|
||||
import {unstable_block as block} from 'react';
|
||||
|
||||
// Server
|
||||
|
||||
|
||||
Reference in New Issue
Block a user