transforms/__testfixtures__/manual-bind-to-arrow/manual-bind-to-arrow2.output.js (15 lines of code) (raw):
class SomeName extends React.Component {
_onChange: Function;
constructor(props: Object) {
super(props);
if (!this.props.something.somePreference) {
this._onChange(SomeConstantsOptions.SOME_CONSTANT);
}
}
/* Some comment */
_onChange = (value: String): void => {
Dispatcher.handleViewAction({
type: SomeConstantsOptions.SOME_CONSTANT,
payload: value,
});
};
}