Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- statefulset
- 고덕그라시움아파트
- 개봉역
- 광명
- describe-instances
- 동대문구
- aws cli
- 행당역
- 신이문역
- docker
- 쿠버네티스
- pod
- k8s
- 상일동역
- 5호선
- 범계역아파트
- 외대앞역
- 답십리역
- 명령어
- kubectl
- Configmap
- 성남
- 신혼부부아파트
- 아파트
- ELB
- 9억이하
- Ansible
- 안양어반포레자연&e편한세상
- React Native
- EC2
Archives
- Today
- Total
목록useHook (1)
게으름을 위한 부지런한 게으름뱅리' 블로그
React Native 하루 기록 - custom Hook
custom Hook은 "use"라는 prefix가 붙어야한다. import React, {useState} from "react"; import { TextInput, View, Button, ProgressViewIOSComponent } from "react-native"; const InputBox = (props) => { return ( ) } const useInput = (initialValue) => { const [value, setValue] = useState(initialValue); const resetValue = () => setValue(initialValue); return { value, setValue, resetValue,} } const CustomHook = ()..
IT/FrontEnd
2022. 12. 9. 22:01