Awesome
coc-react-refactor
React refactor extension for coc.nvim, forked from vscode-react-refactor.
This extension is sponsored by @James Zhang for developing, thank you.
Install
:CocInstall coc-react-refactor
Usage
xmap <leader>a <Plug>(coc-codeaction-selected)
nmap <leader>a <Plug>(coc-codeaction-selected)
Configuration
react-refactor.produceClass
: Create a class-based component, will create a function component when disabled, only works forExtract to file
, defaulttrue
License
MIT
This extension is created by create-coc-extension