import React from 'react' import '../App.css' import { Form, Button, Row, Col, Card, DropdownButton, Dropdown, ButtonGroup } from 'react-bootstrap'; import { useState } from 'react'; import axios from 'axios'; // import { doeCode } from '../utils/Auth'; function LocCodeChange() { const cardstyled = { margin: 'auto', padding: '1em', display: 'flex', justifyContent: 'center', width: '100%', borderWidth: '3px', borderRadius: '20px', borderColor: 'rgb(110, 189, 142)', color: '#04AB70' } const inboxstyled = { display: 'flex', flexDirection: 'column', maxWidth: '80%', justifyContent: 'center', margin: 'auto', padding: '10px' } const btnstyled2 = { background: 'white', margin: '1px', maxWidth: 'fit-content', borderWidth: '2px', color: 'rgb(110, 189, 142)', borderColor: 'rgba(195, 195, 195, 0.753)', borderRadius: '20px' } const [locCodeShow, setLocCodeShow] = useState(false) function handleClickLoc() { setLocCodeShow(true); const auth = document.getElementById('loc-code') auth.style.visibility = 'visible' } // console.log(typeof (locCode())) // console.log(locCode()) // const [ddoe, setDdoe] = useState([]) // async function DoeCode() { // await doeCode().then((res) => { // // // // for (let i = 0; i < res.length; i++) { // // // console.log(res[0]['code_doe']) // // // console.log(0, res[0]['name_doe']) // ddoe.push(res[0]['name_doe']) // ddoe.push(res[1]['name_doe']) // console.log(ddoe) // console.log(typeof(ddoe)) // // // } // }) // } const res = axios.get("localhost:4500/d/loccode"); // const does = res.data["locCodes"]["DOE"] // object return ( {/* {DoeCode()} */} {/* {data} */} asd Local Code Please select a your region
{['도', '시군구', '읍면동'].map((localname) => ( Another action Something else here ))} 지역코드
) } export default LocCodeChange;