[modern-react] 리액트 스터디 파일 추가
This commit is contained in:
14
modern-react/my-react/src/chap03/StyledPanel.js
Normal file
14
modern-react/my-react/src/chap03/StyledPanel.js
Normal file
@@ -0,0 +1,14 @@
|
||||
export default function StyledPanel({ children }) {
|
||||
return (
|
||||
<div style={{
|
||||
margin: 50,
|
||||
padding: 20,
|
||||
border: '1px solid #000',
|
||||
width: 'fit-content',
|
||||
boxShadow: '10px 5px 5px #999',
|
||||
backgroundColor: '#fff'
|
||||
}}>
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user