Skip to content

jonathancreamer-eb/eventbrite-vscode-snippets

Repository files navigation

Eventbrite VSCode Snippets

This repository is a collection of snippets for Visual Studio Code.

Installing and updating

To install...

git clone [email protected]:jonathancreamer-eb/eventbrite-vscode-snippets.git ~/.vscode/extensions

To update...

cd ~/.vscode/extensions/eventbrite-vscode-snippets
git pull

Then reload VS Code!

Snippets

They are located in the /snippets directory.

Snippet Renders
eb-redux-basic-reducer Basic Redux Reducer
eds-basic-component Basic EDS Component

Full Expansions

eb-redux-basic-reducer - Basic Redux Reducer

function $1(state = {}, {type, payload}) {
    switch (type) {
        case 'ACTION':
            return {
                ...state,
            };
        default:
            return state;
    }
};

export default $1;

eds-basic-component - Basic EDS Component

import React, {PureComponent} from 'react';
import PropTypes from 'prop-types';

/**
 * Component description
 */
export default class $1 extends PureComponent {
    static propTypes = {};

    render() {

        return (
            
        );
    }
}

Adding Snippets

To add a snippet, first create an issue to track it.

Then you can add it to the corresponding snippet fild in /snippets.

About

A collection of VS Code Snippets

Resources

Stars

Watchers

Forks

Packages

No packages published