일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- fragment
- SpringBoot
- JS
- RecyclerView
- 안드로이드
- TextView
- JavaScript
- 오버라이딩
- nodejs
- 랜덤넘버
- scrollview
- Hook
- React
- Android
- 코틀린
- stylesheet
- Kotlin
- npm
- GoogleMaps
- 리액트
- TypeScript
- Javscript
- Java
- button
- 구글맵스
- 랜덤번호
- Linux
- 스프링부트
- array
- 자바스크립트
- Today
- Total
목록button (3)
타닥타닥 개발자의 일상

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값을 입력하는 함수..

특별히 생성하는 파일이나 폴더는 없다. App.tsx import React, { useState } from "react"; import { Button, Text, View } from "react-native"; /* class App extends React.Component{ constructor(props:any){ super(props) this.state = { count:0 } } render() { return( You clicked{ this.state.count } times this.setState({count: this.state.count+1})}/> ) } } export default App */ const App =() =>{ const[count,setCount] = u..

숫자를 입력한 다음 + 버튼을 누르면 증가하고 -버튼을 누르면 감소하는, reset버튼을 누르면 숫자가 0으로 초기화 되는 카운터를 만들것. activity_main.xml 코드화면 activity_main.xml 코드화면 MainActivity.kt package com.example.counter import android.content.DialogInterface import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.util.Log import android.widget.Button import android.widget.EditText import android.widget.TextView im..