mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-28 09:25:42 +08:00
Replace deprecated SFC with FunctionComponent (#6746)
This commit is contained in:
committed by
Ian Sutherland
parent
3e336d91e0
commit
b8a47d93cf
2
packages/react-scripts/lib/react-app.d.ts
vendored
2
packages/react-scripts/lib/react-app.d.ts
vendored
@@ -42,7 +42,7 @@ declare module '*.webp' {
|
||||
declare module '*.svg' {
|
||||
import * as React from 'react';
|
||||
|
||||
export const ReactComponent: React.SFC<React.SVGProps<SVGSVGElement>>;
|
||||
export const ReactComponent: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
|
||||
|
||||
const src: string;
|
||||
export default src;
|
||||
|
||||
Reference in New Issue
Block a user