Skip to content

Commit b8a47d9

Browse files
Andrew Lucaiansu
Andrew Luca
authored andcommitted
Replace deprecated SFC with FunctionComponent (#6746)
1 parent 3e336d9 commit b8a47d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-scripts/lib/react-app.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ declare module '*.webp' {
4242
declare module '*.svg' {
4343
import * as React from 'react';
4444

45-
export const ReactComponent: React.SFC<React.SVGProps<SVGSVGElement>>;
45+
export const ReactComponent: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
4646

4747
const src: string;
4848
export default src;

0 commit comments

Comments
 (0)