Chore: Avoid explicit React.FC<Props> when possible (#64722)
This commit is contained in:
@@ -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>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user