Skip to content

Commit 917e69c

Browse files
Initial commit: Analyzing move to file refactor issue with React components
Co-authored-by: RyanCavanaugh <[email protected]>
1 parent 7dd3d82 commit 917e69c

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/// <reference path='fourslash.ts'/>
2+
3+
// @jsx: react
4+
5+
// @Filename: /Component.tsx
6+
////import React from 'react';
7+
////
8+
////export const ComponentA = () => {
9+
//// return <div>Component A</div>;
10+
////};
11+
////
12+
////[|export const ComponentB = () => {
13+
//// return <div>Component B</div>;
14+
////};|]
15+
16+
verify.moveToNewFile({
17+
newFileContents: {
18+
"/Component.tsx":
19+
`import React from 'react';
20+
21+
export const ComponentA = () => {
22+
return <div>Component A</div>;
23+
};
24+
`,
25+
26+
"/ComponentB.tsx":
27+
`import React from 'react';
28+
29+
export const ComponentB = () => {
30+
return <div>Component B</div>;
31+
};
32+
`,
33+
},
34+
});

0 commit comments

Comments
 (0)