Files
Jiachi LiuandGitHub 41a2eb2303 Clean up legacy react 18 tests (#35615)
### source changes
* Error dynamic suspense option in non concurrent mode, don't check react root anymore since they should be bound

### tests changes

* Remove duplicated rsc client test
* Merge type checking cases (`next/dynamic`)
* Remove blocking rendering tests cases since we should opt-in Fizz rendering when using React.lazy
* Remove some thrown promises cases, leverage the streaming component we had in RSC test
2022-03-28 12:32:34 +00:00

22 lines
433 B
TypeScript

import React, { Suspense } from 'react'
import { createStreamingData } from '../../test/streaming-data'
const Data = createStreamingData()
export default function Styled() {
return (
<Suspense fallback={`fallback`}>
<Data>
<div>
<p>This is Red.</p>
<style jsx>{`
p {
color: red;
}
`}</style>
</div>
</Data>
</Suspense>
)
}