I would like to be able to write a script that will go through the codebase and change code without having to do the onerous job of doing it all by hand.
It would be working basically like if I could write XSLT to rewrite JSX.
So if I had some components like
then one could write code like (pseudo)
match = Button
className = apply-templates match="@*" mode = "className"
return