napmn / react-extract.nvim

Neovim plugin for extracting jsx into React component
MIT License
109 stars 5 forks source link

Extract component to current file #2

Closed napmn closed 2 years ago

napmn commented 2 years ago

Three strategies of placement:

  1. end of file
  2. right above current component (maybe skip type definition if it's above current component?)
  3. right below current component

(2. and 3. only with treesitter)