Update README for npm-react-codemod
cpojer committed
Mar 25, 2015 at 16:15 UTC
1865c042d7cbf27316f64ba4f56c06a5fe42f966
1 file changed
+3
-3
npm-react-codemod/README.md
+3
-3
@@ -13,7 +13,7 @@ APIs.
13
14
### Included Scripts
15
16
-`findDOMNode.js` updates `this.getDOMNode()` or `this.refs.foo.getDOMNode()`
16
+`findDOMNode` updates `this.getDOMNode()` or `this.refs.foo.getDOMNode()`
17
calls inside of `React.createClass` components to `React.findDOMNode(foo)`. Note
18
that it will only look at code inside of `React.createClass` calls and only
19
update calls on the component instance or its refs. You can use this script to
@@ -22,7 +22,7 @@ calls.
22
23
* `react-codemod findDOMNode <file>`
24
25
-`pure-render-mixin.js` removes `PureRenderMixin` and inlines
25
+`pure-render-mixin` removes `PureRenderMixin` and inlines
26
`shouldComponentUpdate` so that the ES6 class transform can pick up the React
27
component and turn it into an ES6 class. NOTE: This currently only works if you
28
are using the master version (>0.13.1) of React as it is using
@@ -34,7 +34,7 @@ are using the master version (>0.13.1) of React as it is using
34
namespaced name for the mixin. `mixins: [React.addons.PureRenderMixin]` will
35
not currently work.
36
37
-`class.js` transforms `React.createClass` calls into ES6 classes.
37
+`class` transforms `React.createClass` calls into ES6 classes.
38
39
* `react-codemod class <file>`
40
* If `--no-super-class=true` is specified it will not extend