일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- Spring
- AWS
- springboot
- 리액트
- 스프링부트
- mybatis
- machine-learning
- kubernetes
- github
- 리눅스
- Winform
- 도커
- c#
- 파이썬
- 영어공부
- 머신러닝
- 쿠버네티스
- Spring Boot
- Python
- MySQL
- 리팩토링
- DataGridView
- 마이바티스
- git
- Java
- docker
- VOA
- react
- 스프링
- 자바
Archives
- Today
- Total
목록TypeScript (1)
보뇨 다이어리
focus input on page loading
한창 typescript 와 react 로 맛을 보던중... 페이지 로딩할때 input 태그에 바로 focus 를 어떻게 해야하는지 찾아보았다 사실 간단한데 typescript 로 짤려니까 에러가 보기싫더라구...ㅠ const Search = () => { const [input, setInput] = useState(""); const history = useHistory(); const inputRef = useRef(); const search = (e: React.MouseEvent) => { e.preventDefault(); history.push("/search"); }; useEffect(() => { // error inputRef.current.focus(); }, []); return..
프론트엔드/React 정보
2020. 9. 2. 19:38