1. 생성자에서 핸들러에 this를 바인딩 class MyComponent extends React.Component { constructor() { this.state = { someState, }; this.myMethod = this.myMethod.bind(this); // this 바인딩 } myMethod() { this.setState({someState: 'another state'}); } render() { return ( ); } } 2. 핸들러 등록과 함께 this를 바인딩 class MyComponent extends React.Component { constructor() { this.state = { someState, }; } myMethod() { this.setState(..
nodejs version 8 미만에서는 함수 호출 파라미터에 trailing comma를 허용하지 않는다. 함수 호출 파라미터에서 trailing comma를 제거한다. // v8 myFunction(param1, param2) // ok myFunction(param1, param2,) // ok 참고: trailing comma 사용 이유 다음과 같은 코드가 있다고 가정한다. myFunction({ param1: "param1" }); myFunction 의 파라미터 객체에 새로운 값을 추가로 전달해야할 경우 다..
iPhone X 시리즈의 iOS 13.4 이전 버전에서 발생하는 이슈로 추정된다. github.com/apache/cordova-ios/issues/417#issuecomment-603896486 Keyboard Dismissal Leaves Viewport Shifted in iOS 12 / XCode 10 · Issue #417 · apache/cordova-ios Seeing a blocking issue after updating to XCode 10 related to keyboard displacement and then dismissal. When an input that would require webview centering is clicked, the viewport is reposit..
- Total