Largely based on the code @threepointone wrote for react-codemod. Co-Authored-By: Sunil Pai <threepointone@gmail.com> Co-authored-by: Sunil Pai <threepointone@gmail.com>