Example in transform files
Just like https://github.com/reactjs/react-codemod/blob/master/transforms/manual-bind-to-arrow.js file has comment on top to show what will be the impact of transformation by before and after codes, can we please update other JS files with comments to show before and after codeblocks?
I'll accept a PR.
Also in the README would be nice
Hey @threepointone , is this issue still free to take?
Assigned to you! Take your time with this. Maybe a good idea to add a TOC to the README too, since this will make it quite chunky. Happy to discuss if you have questions.
Thanks! I'll get working on this right away. Good shout about a contents in the README, I'll add that as well.
to avoid out of sync comments maybe it's better only in the: a) transformation file or b) the readme file should be the impact example code?
Only in the README file, I think. And it doesn’t have to be exhaustive (if there are options), just a simple example will do.