React
const [value, setValue] = useState("");
const handleChange = ( e ) => {
setValue(e.target.value);
}
onChange={handleChange}
React Native
const [value, setValue] = useState("");
onChangeText={(text) => setValue(text)}
'개발일지 > React Native' 카테고리의 다른 글
[React Native] ENOENT: no such file or directory (0) | 2021.01.27 |
---|---|
[React Native] Container - Presenter Pattern (0) | 2021.01.27 |
[React Native] Noovies 클론코딩 개발일지 (0) | 2021.01.24 |
[React Native] Text strings must be rendered within a <Text> component (2) | 2021.01.13 |
[React Native] Stack과 Tab Navigation 동시에 사용하기 (0) | 2021.01.06 |