styled-components-codemods icon indicating copy to clipboard operation
styled-components-codemods copied to clipboard

innerRef -> ref

Open quantizor opened this issue 7 years ago • 2 comments

quantizor avatar Oct 09 '18 23:10 quantizor

This will be really hard to do since we can't keep track of which components are s-c and which ones aren't. People might be using innerRef for other components, it's become a bit of a convention by now...

mxstbr avatar Oct 10 '18 06:10 mxstbr

I wouldn't recommend it for this case as it'll be a ton of work, but you could make a tool that proposes changes file by file, prompting approval accompanied by a diff snippet, as well as "links" to the files and line numbers that changed.

StevenLangbroek avatar Oct 10 '18 20:10 StevenLangbroek