Piex Snippets
imfc
import { FC } from 'react';
const Comp: FC = () => {
return ();
};
export default Comp;
imfcp
import { FC } from 'react';
interface ICompProps {
}
const Comp: FC<ICompProps> = () => {
return ();
};
export default Comp;
ucb
const $1 = useCallback(() => {
// do something here
}, []);
um
const $1 = useMemo(() => ${2:/* return a value */}, []);
us
const [state, setState] = useState(0);
ur
const [toggle, setToggle] = useReducer((state) => !state, false);
| |