mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
22 lines
424 B
TypeScript
22 lines
424 B
TypeScript
import React, { Suspense } from 'react'
|
|
import { createStreamingData } from './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>
|
|
)
|
|
}
|