mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
Removes the unstable prefix from `unstable_io`. Since this was only shipped in canaries with the unstable prefix we are going to just remove it without retaining the unstable prefix simultaneously.
15 lines
300 B
TypeScript
15 lines
300 B
TypeScript
import React from 'react'
|
|
import { io } from 'next/cache'
|
|
|
|
export default function PagesUse() {
|
|
if (typeof React.use === 'function') {
|
|
React.use(io())
|
|
}
|
|
return (
|
|
<>
|
|
<p>This page calls React.use(io()) in the component body.</p>
|
|
<div id="pages-content">ok</div>
|
|
</>
|
|
)
|
|
}
|