Chore: Avoid explicit React.FC<Props> when possible (#64722)

This commit is contained in:
Ryan McKinley
2023-03-14 16:38:21 +02:00
committed by GitHub
parent cde1b5b162
commit d710507bc5
213 changed files with 485 additions and 498 deletions
@@ -1,8 +1,8 @@
export const componentTpl = `import React, { FC } from 'react';
export const componentTpl = `import React from 'react';
export interface Props {};
export const <%= name %>: FC<Props> = (props) => {
export const <%= name %> = (props: Props) => {
return (
<div>Hello world!</div>
)