Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Piex Code SnippetsNew to Visual Studio Code? Get it now.
Piex Code Snippets

Piex Code Snippets

Mervyn Zhang

|
50 installs
| (0) | Free
Code snippets for piex
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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);
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft