3f8f72bf9b
Follow up for https://github.com/vercel/next.js/pull/40415 Remove internal next client api determination, fully relying on `'client'` directive. Change `.client.js` extension to `.js ` in tests, remove legacy / unused test files
9 lines
218 B
JavaScript
9 lines
218 B
JavaScript
'client'
|
|
|
|
import { useState } from 'react'
|
|
|
|
export default function Client() {
|
|
// To ensure that this component is rendered as a client component, we use a
|
|
// state here.
|
|
return useState('client_component')[0]
|
|
}
|