Skip to content

SedimentStudio/simple-functional-react-snippets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Functional React Snippets

Exceptionally simple snippets for creating React function components in Visual Studio Code.

Demo

Snippets

Nothing more, nothing less than what you need to start composing a component. These snippets provide multiple cursors where | is shown.

fc - Create a function component

import React from 'react';

function | () {
}

export default |;

lfc - Create a lambda function component

import React from 'react';

const | = () => {
}

export default |;

fcr - Create a function component with a return statement

Hit tab to move to the next placeholder

import React from 'react';

function | () {
  return (
    |
  );
}

export default |;

lfcr - Create a lambda function component with a return statement

Hit tab to move to the next placeholder

import React from 'react';

const | = () => {
  return (
    |
  );
}

export default |;

About

Exceptionally simple snippets for creating React function components in Visual Studio Code.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published