import React, { useState, useEffect, useRef } from 'react'; import { Redirect } from 'react-router-dom'; import { Card, Button, Container, Row, Col } from 'react-bootstrap'; import axios from 'axios'; function ShoppingCart() { const [num, setNum] = useState(0) function plusNum() { setNum(num + 1) } function minusNum() { if (num === 0) { setNum(0) } else { setNum(num - 1) } } function deleteCart() { //장바구니 DB에서 해당 항목 삭제 console.log('카트에 담긴 항목을 삭제했습니다.') } // async function getCart(){ // const response = await axios.get('/') // } return (