Skip to content

fannheyward/coc-react-refactor

Repository files navigation

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.

coc-react-refactor

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 for Extract to file, default true

License

MIT


This extension is created by create-coc-extension