React-Native App 개발(component 이용한 counter 만들기)
앱개발 플러스 1주차 숙제이다. component를 이용하여 counter 프로그램 만들기. MinusButton.js, PlusButton.js 두개의 component를 만들고, 'setState' 함수를 이용하여 버튼을 누를 때마다 숫자가 증가 혹은 감소하도록 하였다. App.js import { StatusBar } from 'expo-status-bar'; import React, { useState } from 'react'; import { StyleSheet, View, Text } from 'react-native'; import MinusButton from './components/MinusButton'; import PlusButton from './components/PlusBut..