当我写`React.Something`时发出警告

时间:2019-05-21 03:44:38

标签: reactjs eslint

我想不使用import React, { FunctionComponent } from 'react'; const HelloWorld: FunctionComponent = () => { return <p>Hello World</p> } export HelloWorld; 。相反,我想这样写。

{{1}}

是否有任何不错的选择可以强制执行此操作? 谢谢!

0 个答案:

没有答案