mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Initial commit: Analyzing move to file refactor issue with React components
Co-authored-by: RyanCavanaugh <6685088+RyanCavanaugh@users.noreply.github.com>
This commit is contained in:
co-authored by
RyanCavanaugh
parent
7dd3d82509
commit
917e69c247
@@ -0,0 +1,34 @@
|
||||
/// <reference path='fourslash.ts'/>
|
||||
|
||||
// @jsx: react
|
||||
|
||||
// @Filename: /Component.tsx
|
||||
////import React from 'react';
|
||||
////
|
||||
////export const ComponentA = () => {
|
||||
//// return <div>Component A</div>;
|
||||
////};
|
||||
////
|
||||
////[|export const ComponentB = () => {
|
||||
//// return <div>Component B</div>;
|
||||
////};|]
|
||||
|
||||
verify.moveToNewFile({
|
||||
newFileContents: {
|
||||
"/Component.tsx":
|
||||
`import React from 'react';
|
||||
|
||||
export const ComponentA = () => {
|
||||
return <div>Component A</div>;
|
||||
};
|
||||
`,
|
||||
|
||||
"/ComponentB.tsx":
|
||||
`import React from 'react';
|
||||
|
||||
export const ComponentB = () => {
|
||||
return <div>Component B</div>;
|
||||
};
|
||||
`,
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user