import React, { useState, useEffect, useCallback } from 'react'; import {Container} from "react-bootstrap"; import Row from "react-bootstrap/Row"; import Col from "react-bootstrap/Col"; import Form from 'react-bootstrap/Form' import Button from "react-bootstrap/Button"; import * as EgovNet from "api/egovFetch"; function ParentCodeDiv(props){ const [codeGrpRow, setCodeGrpRow] = useState(); function getCodeGrp(){ EgovNet.requestFetch( '/admin/config/code-grp', { method: "GET", headers: { 'Content-type': 'application/json' }, body: JSON.stringify({}) }, (resp) => { debugger }, function (resp) { console.log("err response : ", resp); } ); } useEffect(() => { getCodeGrp(); }, []); return ( 코드그룹 코드그룹명 삭제 수정 {codeGrpRow} ); } export default ParentCodeDiv;