Skip to content
Snippets Groups Projects
Commit 8e881387 authored by TaeWook Kim's avatar TaeWook Kim
Browse files

2

parent 31d6b678
Branches
No related tags found
No related merge requests found
Pipeline #7827 passed
import React from 'react';
import { Typography, AppBar } from '@mui/material';
import MusicList from './MusicList';
import music_list from './data';
export default function App () {
return (
<React.Fragment>
<AppBar position="fixed">
<Typography align="center" variant="h3" color="inherit">Tae Wook's Favorite Music</Typography>
</AppBar>
<div style={{height: 60, width: '100%'}}></div>
<MusicList list={music_list}>
</MusicList>
</React.Fragment>
)
}
......
import React from 'react';
import {Card, CardContent, Typography} from '@mui/material';
export default function MusicList ({list}) {
return (
<div>
{list.result.map(item => {
return (
<Card>
<CardContent>
<Typography variant="subtitle1"> {item.artistName}</Typography>
<Typography variant="subtitle2"> {item.collectionCensoredName}</Typography>
</CardContent>
</Card>)
})}
</div>
);
}
\ No newline at end of file
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment