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 | 31 |
Tags
- Java
- array
- 자바스크립트
- JavaScript
- Javscript
- Android
- Kotlin
- 구글맵스
- scrollview
- button
- 랜덤번호
- TypeScript
- stylesheet
- RecyclerView
- 안드로이드
- Hook
- fragment
- 오버라이딩
- nodejs
- JS
- SpringBoot
- TextView
- GoogleMaps
- 리액트
- Linux
- npm
- 코틀린
- 랜덤넘버
- 스프링부트
- React
Archives
- Today
- Total
목록TextInput (1)
타닥타닥 개발자의 일상
react 텍스트 입력하고 button 누르면 console창에 출력되게 하는 화면 만들기 (typescript/TextUnput/Button)
App.tsx import React, { useState } from "react"; import { Button, Text, TextInput, View } from "react-native"; let glTag:String //사용되지 않는 함수 function MyFunc(props:any){ console.log(props.name) props.setText('Money') return {props.name} } export default function App(){ const [ inputTextValue, setInputTextValue ] =useState("") const [text,setText] = useState("") //setInputTextValue에 text값을 입력하는 함수..
코딩 기록/react
2022. 3. 7. 16:51