UNPKG
react-codemod
Version:
latest (5.4.4)
5.4.4
5.4.3
5.4.2
5.4.1
5.4.0
5.3.0
5.2.2
5.2.1
5.2.0
5.1.1
5.1.0
5.0.5
5.0.4
5.0.3
5.0.2
5.0.1
5.0.0
4.0.1
4.0.0
2.0.0
1.0.0
React codemod scripts
github.com/reactjs/react-codemod
reactjs/react-codemod
react-codemod
/
transforms
/
__testfixtures__
/
manual-bind-to-arrow
/
manual-bind-to-arrow6.output.js
10 lines
(9 loc)
•
223 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
class
Component
extends
React.Component
{
constructor
(
) {
super
();
const
self
:
any
=
this
; self.
_onMapResize
=
debounceCore
(
this
.
_onMapResize
.
bind
(
this
),
100
); } onClick =
() =>
{ };
onMapResize
(
) { } }