Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>React/Next.js snippetsNew to Visual Studio Code? Get it now.
React/Next.js snippets

React/Next.js snippets

stlato

|
540 installs
| (2) | Free
React/Next.js snippets App Router Ready
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

VS Code react-next-snippets

React/Next.js snippets App Router Ready

Installation Visual Studio Marketplace

Supported languages (file extensions)

  • TypeScript(.ts)
  • TypeScript React(.tsx)

Usage

  1. Type cfc in .tsx(or .ts) File
  2. VS Code will suggest "clientFunctionComponent"
  3. Hit enter

Then, VS Code generate boilerplate code of your component like this:

"use client";

type Props = {};

export const FileName = (props: Props) => {
  return <div></div>;
};

Snippets

Trigger Content
fc→ function component
fcfr→ function component forwarded ref
cfc→ client function component
cfcfr→ client function component forwarded ref
efc→ emotion function component
efcfr→ emotion function component forwarded ref
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft