Skip to content
This repository has been archived by the owner on Apr 1, 2023. It is now read-only.

Commit

Permalink
Update deprecated type
Browse files Browse the repository at this point in the history
@deprecated
as of recent React versions, function components can no longer be considered 'stateless'. Please use FunctionComponent instead.
  • Loading branch information
alanpcs committed Oct 23, 2020
1 parent b4ad5b8 commit a138ca1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion template/typescript/src/typings.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ declare module '*.less' {
export default content;
}

interface SvgrComponent extends React.StatelessComponent<React.SVGAttributes<SVGElement>> {}
interface SvgrComponent extends React.FunctionComponent<React.SVGAttributes<SVGElement>> {}

declare module '*.svg' {
const svgUrl: string;
Expand Down

0 comments on commit a138ca1

Please sign in to comment.