https://stackoverflow.com/questions/22573494/react-js-input-losing-focus-when-rerendering
React.js - input losing focus when rerendering
I am just writing to text input and in onChange event I call setState, so React re-renders my UI. The problem is that the text input always loses focus, so I need to focus it again for each letter ...
stackoverflow.com
결론: 키의 문제다
'js,ts > react and g-library' 카테고리의 다른 글
[nextjs]nextjs를 왜쓰냐면! (0) | 2022.02.22 |
---|---|
프레임워크 정하기 (0) | 2022.02.15 |
[npm]code ERESOLVE (0) | 2022.01.29 |
[react-error]react Uncaught ReferenceError: process is not defined (0) | 2022.01.21 |
[rtk]redux-toolkit 사용기 (0) | 2021.12.08 |