jjongrrr
@jjongrrr0806
Reviews Written
11
Average Rating
5.0
Posts
Q&A
์๋ ํ์ธ์ ๋ฐฐ์ดํํฐ ๊ถ๊ธํ์ ์ด ์์ต๋๋ค
์ํ ๋ฌด์กฐ๊ฑด ์จ์ผ๋๋๊ฒ ๋ง๊ตฐ์ ๊ฐ์ฌํฉ๋๋ค~
- 0
- 2
- 362
Q&A
Schema hasn't been registered for model "comment".
๊ฐ์ฌํฉ๋๋ค.. ํ์ฐธ์ ํค๋งค๋ค๊ฐ ๋ดค๋ค์ ์ด๊ฑธ ใ ใ
- 1
- 2
- 473
Q&A
์ ์๋ req์ ์๋ฌด๊ฒ๋ ์๋ค์ด์ค๋๋ฐ ํน์ ๋ญ๊ฐ๋ฌธ์ ์ผ๊น์ ?
ํด๊ฒฐ ํ๋ค์.. ๋ฌธ์ ๊ฐ ์์ด์ react-router-dom 6๋ฒ์ ์ ์ฌ์ฉํ๋๋ฐ 6๋ฒ์ ์ ์ข ๋ง์ด ๋ฐ๋์๋ค์ ใ ํน์ 6๋ฒ์ ์ฌ์ฉํ์๋๋ถ๋ค ์ํด ๋จ๊ฒจ๋ก๋๋ค ์ ๋ useParams๋ก ๋ถ๋ฌ์์ params๊ฐ ๋ฃ์์ด์
- 0
- 1
- 300
Q&A
์๋ ํ์ธ์ ๊ฐ์ ์ ๋ณด๊ณ ์์ต๋๋ค ์ง๋ฌธ ํ๋ ์๋๋ฐ์ ..
App์ Router๋ก ๊ฐ์ธ๊ณ Route ์ค์ ํด์ฃผ๋ ์ ๋๋ค์ .. ์ ๋ css ๊ด๋ จ ํ๋ ์์ํฌ๋ฅผ ์์ฐ๊ณ ์๋๋ฐ ๊ทธ๊ฑฐ๋๋ฌธ์ธ๊ฐ๋ณด๋ค์ .. ํด๊ฒฐ ํ์ต๋๋ค
- 0
- 1
- 1.6K
Q&A
์๋ ํ์ธ์ ์ง๋ฌธ๋๋ฆฝ๋๋ค
์ค์...๋ค์ ์๋ ์์ค๋ก ๋ถ์ด๋๊น ์ ๋๋ค์ ...;;;;; ์ ๋ก์ด๋ ์์ค ๋ถ์ฌ๋ ๋๊ฐ๊ธธ๋ ์๋๋ ์ค ์์๋๋ฐ ...์ ๋๋ค์ ..... ์๋๊ธ์ id password๋ง ๊ฐ์ ธ์๋๊ฑด postcard์ nickname[0] ์ด ์์ด์ ์๋ฌ๊ฐ ๋ฌ๋๊ฑฐ์๋ค์ import React from 'react'; import Document, { Html, Head, Main, NextScript } from 'next/document'; import { ServerStyleSheet } from 'styled-components'; export default class MyDocument extends Document { static async getInitialProps(ctx) { const sheet = new ServerStyleSheet(); const originalRenderPage = ctx.renderPage; try { ctx.renderPage = () => originalRenderPage({ enhanceApp: App => props => sheet.collectStyles(App {...props} />), }); const initialProps = await Document.getInitialProps(ctx); return { ...initialProps, styles: ( {initialProps.styles} {sheet.getStyleElement()} ), }; } finally { sheet.seal(); } } render() { return ( Html> Head /> body> Main /> NextScript /> body> Html> ); } }
- 0
- 4
- 300
Q&A
์๋ ํ์ธ์ ์ง๋ฌธ๋๋ฆฝ๋๋ค
ํ๋ก ํธ๋ ๋ฐฑ์์ ์๋ฌ๊ฐ ๋์ง ์์ผ๋ฉด ์ ์๋ํฉ๋๋ค..! ๊ทผ๋ฐ ์ ๊ฐ ๊ธฐ๋ฅ ์ถ๊ฐํ๋ค๊ฐ ์๋์ฒ๋ผ ์์ฑํ์๋๋ฐ ์ค๋ฅ๊ฐ ๋๋๋ผ๊ตฌ์ ... ์ด๋ ๊ฒ ์๋ฒ์ชฝ์ ์๋ฌ๊ฐ ์์ ๋ ์ ๋ฐ์์ผ๋ก ๋น๋๋ค ์๋ฅผ ๋ค์ด ์๋์ฒ๋ผ ์ ์ ๋ชจ๋ธ์ id๋ password๋ง ๊ฐ์ ธ์ค๋ฉด ์ ๊ฒ ๋ฌธ์ ๋ผ๊ณ ์๋ฌ๊ฐ ๋์ผ๋๋๋ฐ ์์ ์์ค์ฒ๋ผ ์๋ฌ๊ฐ ๋ฉ๋๋ค. ์๋ ์์ค๋ nickname์ด๋ email์ ๊ฐ์ ธ์ค๋ฉด ์ ๋๊ตฌ์ include: [{ model: User, attributes: ['id', 'password'] }
- 0
- 4
- 300
Q&A
์๋ ํ์ธ์ ์ง๋ฌธ๋๋ฆฝ๋๋ค
์๋์ ๋๋ค! import React from 'react' import Document, { Html, Head, Main, NextScript } from 'next/document'; import { ServerStyleSheet } from 'styled-components' export default class MyDocument extends Document { // styled components ssr static async getInitialProps(ctx) { const sheet = new ServerStyleSheet(); const originalRenderPage = ctx.renderPage; try { ctx.renderPage = () => originalRenderPage({ enhanceApp: App => props => sheet.collectStyles(App {...props} />), }); const initialProps = await Document.getInitialProps(ctx); return { ...initialProps, styles: ( {initialProps.styles} {sheet.getStyleElement()} ), }; } catch (error) { console.error(error); } finally { sheet.seal(); } } // ์๋๊ฐ ๊ธฐ๋ณธ๊ผด. _app.js ์์ _document.js๊ฐ ์๊ณ ์ฌ๊ธฐ์ ssrํ๋ฉด ๋จ. ์ฌ๊ธฐ์์ html head body ์์ ๊ฐ๋ฅ // https://polyfill.io/ ์์ ํด๋ฆฌํ ์ฒดํฌํด์ ๋ณต์ฌํ๊ณ NextScript ์๋ณด๋ค ์์ ํด๋ฆฌํ ๋ฑ๋ก render() { return ( Html> Head /> body> script src="https://polyfill.io/v3/polyfill.min.js?features=default%2Ces2015%2Ces2016%2Ces2017%2Ces2018%2Ces2019">script> Main /> NextScript /> body> Html> ) } }
- 0
- 4
- 300
Q&A
์๋ ํ์ธ์. ๊ฐ์๋ณด๋ค ์ง๋ฌธ์ด ์์ด์์~
์ ๊ทธ๋ฅ ์ ๊ฐ ์์ฒด๊ฐ ์ด๋๋ถํฐ ์ด๋๊น์ง ๋๊ฐ์ ๊ฐ์ ๊ฐ์ง๋๊น + ๊ฐ ํ๋ฉด ๋ ๋ค์๊ฒ +๋๋๊ฑด๊ฐ๋ณด๋ค์! ๊ฐ์ฌํฉ๋๋ค ๊ฐ์ ๋ ์ข์์
- 0
- 4
- 223
Q&A
์๋ ํ์ธ์. ๊ฐ์๋ณด๋ค ์ง๋ฌธ์ด ์์ด์์~
์ ๊ทธ๋ ๊ตฐ์.. ๊ทผ๋ฐ ์ฝ๋์์๋ (value[1] - value[0]) + value[0] ์ด๊ฑด๋ฐ 250์ ๊ฐ์ ์ฒซ๋ฒ์งธ ๊ฐ๊ณผ ๋ง์ง๋ง ๊ฐ์ ๋ํ๋ ์ฝ๋๊ฐ ์ ์ฝ๋์ผ๊น์..?
- 0
- 4
- 223




