Skip to content
Snippets Groups Projects
Commit 41f5fd2b authored by nahyun's avatar nahyun
Browse files

수정

parent a1956127
Branches
No related tags found
No related merge requests found
Pipeline #8481 passed
import React from 'react';
//import React from 'react';
import { Typography } from '@mui/material';
import MusicList from './MusicList';
import axios from 'axios';
import React, { useEffect } from 'react';
const Favorites = ({ list, onLike }) => {
useEffect(() => {
axios.get('/likes')
.then((response) => {
const data = response.data;
setFavorites(data);
})
.catch((error) => {
console.error('Error:', error);
});
}, []);
return (
<React.Fragment>
<MusicList list={list} onLike={onLike} />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment