I usually rewrite React.js components between function and class. This is tedious and at the same time a common task. Therefore I wrote a program that takes a javascript code as an input, and returns a converted code. It does so by parsing the input and walking the AST.