File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -48,10 +48,7 @@ const readStream = async (
48
48
return decoder . decode ( mergedChunks ) ;
49
49
} ;
50
50
51
- export const render = async (
52
- node : React . ReactNode ,
53
- options ?: Options ,
54
- ) => {
51
+ export const render = async ( node : React . ReactNode , options ?: Options ) => {
55
52
const suspendedElement = < Suspense > { node } </ Suspense > ;
56
53
const reactDOMServer = await import ( 'react-dom/server' ) . then (
57
54
// This is beacuse react-dom/server is CJS
Original file line number Diff line number Diff line change @@ -5,10 +5,7 @@ import { plainTextSelectors } from '../shared/plain-text-selectors';
5
5
import { pretty } from '../shared/utils/pretty' ;
6
6
import { readStream } from './read-stream' ;
7
7
8
- export const render = async (
9
- node : React . ReactNode ,
10
- options ?: Options ,
11
- ) => {
8
+ export const render = async ( node : React . ReactNode , options ?: Options ) => {
12
9
const suspendedElement = < Suspense > { node } </ Suspense > ;
13
10
const reactDOMServer = await import ( 'react-dom/server' ) . then (
14
11
// This is beacuse react-dom/server is CJS
You can’t perform that action at this time.
0 commit comments