Create TS FC React Component
This is an extension which create a ts fc component like below:
import React, { FC } from 'react';
export interface ComponentNameProps {
}
const ComponentName: FC = () => {
return (
<div>
Hello ComponentName
</div>
);
};
export default ComponentName;
now only supporting one naming type like component-name, it can be created by snippets rtfc
And also supporting some antd component and ahooks snippets
``
ahooks snippets
Prefix |
Snippet |
ui |
useInterval |
uto |
useTimeout |
ub |
useBoolean |
uls |
useLocalStorageState |
usz |
useSize |
antd component snippets
Prefix |
Snippets |
umv |
const [ModalVisible, setModalVisible] = useState(false); |
amodal |
antd modal component |
| |