From d591877ca5cb6c7c13e5d3afd0081d0d6bf83159 Mon Sep 17 00:00:00 2001 From: Ian McNally Date: Wed, 24 Aug 2016 14:27:10 -0400 Subject: [PATCH] Add documentation for manual-bind-to-arrow Following up on #67, this adds the manual-bind-to-arrow to the README's transform documentation. --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) 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