We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TextInput을 처리하던 중에 onChange 이벤트가 2개가 있어 차이점을 정리해봤습니다 😨
e.target
e.nativeEvent
// e.nativeEvent Object { "eventCount": 30, "target": 653, "text": "Ds", }
onChange
const onChangeMemo = (e) => { console.log(e); }; // -> e가 바로 텍스트가 됨
The text was updated successfully, but these errors were encountered:
오오 공유 감사합니다 샛별님!! onChangeText는 단순하게 text 변경값만 가져오는군여
Sorry, something went wrong.
No branches or pull requests
TextInput을 처리하던 중에 onChange 이벤트가 2개가 있어 차이점을 정리해봤습니다 😨
onChange
e.target
이 아니라e.nativeEvent
객체로 접근onChangeText
onChange
의 단순한 버전으로 변경된 value만 바로 파라미터로 전달된다The text was updated successfully, but these errors were encountered: