styled-components-codemods
styled-components-codemods copied to clipboard
innerRef -> ref
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...
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.