일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Tags
- Programmers
- next13 head
- CSS
- context
- react-helmet
- 고급안내서
- RTK Query
- hook
- Babel
- codingtest
- Nextjs React 18
- React 18
- background: url
- React 18 Nextjs
- Render Props
- getUTCDate
- background tab
- React 고급안내서
- React 고급 안내서
- React 공식문서
- Next13
- Nextjs
- React18
- React API 참고서
- react
- Javascript
- notFound()
- background setInterval
- react hook
- background setttimeout
Archives
- Today
- Total
akjfal
9/26 본문
const handleBackground = (background) => {
switch (background) {
case 'aaa':
backgroundcolor: ${({ backgroundcolor }) => handleBackground(background)};
<StyledButton
color={color}
>
{children}
</StyledButton>
스타일 지정법
const { getRootProps, getInputProps } = useDropzone({
accept: 'image/*',
onDrop: (acceptedFiles) => {
setFiles(acceptedFiles.map((file) => Object.assign(file, {
preview: URL.createObjectURL(file),
})));
setNewRepresentImg(acceptedFiles);
setState({ img: true });
},
});
사진 넘기는법 -> setNewRepresentImg가 중요!
사진 넘기고 파일 구조의 대대적인 변경이 있었다.
Comments