# [react native] 카운터 앱

- 주소: https://duotone.co.kr/entry/react-native-%EC%B9%B4%EC%9A%B4%ED%84%B0-%EC%95%B1
- 글쓴이: 서기㏇
- 카테고리: 개발·프로그래밍
- 작성일: 2021-02-18

```
import { StatusBar } from 'expo-status-bar';
import React, { useState } from 'react';
import { StyleSheet, Text, View, Button } from 'react-native';

export default function App() {

  const [cnt, setCnt] = useState(10);

  return (

      헬로우 리엑트 네이티브
      {cnt}
       setCnt(cnt+1)  }>
       setCnt(cnt-1)  }>

  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: '#fff',
    alignItems: 'center',
    justifyContent: 'center',
  },
  assa:{
    color:'#f00',
    fontSize:20,
  },
  cnt:{
    fontSize:50,
    marginTop:20,
  }

});
```
