vim ultisnips snippets for React, using es6 syntax
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 13 commits ahead, 6 commits behind bentayloruk:master.
Latest commit 5ce642f Nov 15, 2016
Failed to load latest commit information.
UltiSnips indentation Nov 16, 2016
snippets changed import/class syntax (untested snipmate snippets) Oct 26, 2015
.gitignore Fixed missing class keyword. Nov 21, 2014 Update Oct 27, 2015

Note: justinj's snipmate snippets originally ported to ES6 by bentayloruk, I only use Ultisnips so those are the only ones I've tested


A set of snippets for Vim to work with Facebook's React library.

A direct port of the awesome snippets from justinj/vim-react-snippets.

Requires UltiSnips.


Use your preferred (neo)vim plugin installation method or just copy the snippets over to the relevant folder.


Within any Javascript or JSX file, you should be able to do the following:

(in insert mode)


expanding to

getDefaultProps() {
    return {


And a bunch of others!

You may have to set g:UltiSnipsExpandTrigger and g:UltiSnipsJumpForwardTrigger, depending on which other tab-based plugins you have installed. I personally use Control+j. Check the UltiSnips help page for more info and UltiSnips/javascript.snippets in this repo to see the full snippet list.