felipeochoa / rjsx-mode

A JSX major mode for Emacs
https://github.com/felipeochoa/rjsx-mode
MIT License
639 stars 32 forks source link

Vanish tag #49

Open felipeochoa opened 6 years ago

felipeochoa commented 6 years ago

Especially with React 16, it would be nice to have a single command to unwrap the children of a tag and splice them into the surroundings:

let c = <Parent><Child/><Parent>; // point on Parent

after vanishing parent should give:

let c = <Child/>; // point right before Child