React tools for Vim
Navigating React components got you stressed? Chill, relax.vim has got you covered.
relax.vim depends on TimL
- Easily jump to any method within a React class with
:R:R rto jump torender:R gisto jump togetInitialState:R! gdpto jump togetDefaultProps, and create it if it doesn't exist
- Jump to event handlers with
:RHandler- Anywhere on the line
onClick={this.handleClick}will jump to it - It will also create the handler if it doesn't exist
- Anywhere on the line
- Scan a class for uses of
this.propsand create a simplepropTypeswith:RProps
Install it like any other Vim plugin, the one difference is that this depends on TimL, so that must be installed as well.
Copyright (c) Justin Jaffray. Distributed under the same terms as Vim itself.
See :help license.