Exceptionally simple snippets for creating React function components in Visual Studio Code.
Nothing more, nothing less than what you need to start composing a component. These snippets provide multiple cursors where |
is shown.
import React from 'react';
function | () {
}
export default |;
import React from 'react';
const | = () => {
}
export default |;
Hit tab to move to the next placeholder
import React from 'react';
function | () {
return (
|
);
}
export default |;
Hit tab to move to the next placeholder
import React from 'react';
const | = () => {
return (
|
);
}
export default |;