mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-25 23:05:23 +00:00
[Beta] Drop next/dynamic usage (#4695)
This commit is contained in:
@@ -3,10 +3,9 @@
|
||||
*/
|
||||
|
||||
import * as React from 'react';
|
||||
import dynamic from 'next/dynamic';
|
||||
import {createFileMap} from './createFileMap';
|
||||
|
||||
const SandpackRoot = dynamic(() => import('./SandpackRoot'), {suspense: true});
|
||||
const SandpackRoot = React.lazy(() => import('./SandpackRoot'));
|
||||
|
||||
const SandpackGlimmer = ({code}: {code: string}) => (
|
||||
<div className="sandpack-container my-8">
|
||||
|
||||
Reference in New Issue
Block a user