Skip to content

Commit 762d308

Browse files
authored
Add missing 'as' to import
React Stateless Functional Component was missing the 'as' in `import * as React from 'react';`
1 parent dd57ade commit 762d308

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

snippets/snippets.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
"React Stateless Functional Component": {
102102
"prefix": "tsrsfc",
103103
"body": [
104-
"import * React from 'react';",
104+
"import * as React from 'react';",
105105
"",
106106
"interface ${1:App}Props {$2",
107107
"}",
@@ -255,4 +255,4 @@
255255
],
256256
"description": "Create a import"
257257
}
258-
}
258+
}

0 commit comments

Comments
 (0)