diff --git a/README.md b/README.md index 3803fa76..200c7d91 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,14 @@ to `getDOMNode` and then manually go through the remaining calls. jscodeshift -t react-codemod/transforms/findDOMNode.js ``` +#### `manual-bind-to-arrow` + +Converts manual function bindings in a class (e.g., `this.f = this.f.bind(this)`) to arrow property initializer functions (e.g., `f = () => {}`). + +```sh +jscodeshift -t react-codemod/transforms/manual-bind-to-arrow.js +``` + #### `pure-component` ```sh