I am working on a project on NextJS 13 and tried to extract a component to a file.
I had a 'use client' at the top of the file but after extracting it, the extension added the import to the extracted component and broke the first line that was supposed to be "use client".
Before:
'use client'
// my imports
After:
import { ExtractedComponent ] from './ExtractedComponent'
;('use client')
// my imports
I am working on a project on NextJS 13 and tried to extract a component to a file. I had a 'use client' at the top of the file but after extracting it, the extension added the import to the extracted component and broke the first line that was supposed to be "use client".
Before:
After: