๋ฐ์ํ
250x250
Notice
Recent Posts
Recent Comments
์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- ๋ฐ์ดํฐ๋ถ์
- ๊นํ๋ธ
- ์ฝํ
- ์๊ณ ๋ฆฌ์ฆ
- Git
- ์์ฐ์ด์ฒ๋ฆฌ
- ํ ์คํธ๋ง์ด๋
- AI
- ์๋ง์กด์น์๋น์ค
- ๋ฐฑ์ค
- ํ๋ธ๋ก
- erp
- ํ ์คํธ๋ถ์
- tableau
- ํ๋ธ๋ฃจ
- ๋ฐ์ดํฐ ๋ถ์
- ๋น ๋ฐ์ดํฐ
- ์ฝ๋ฉํ ์คํธ
- ํ์ด์ฌ
- ๋ฅ๋ฌ๋
- ๋ฆฌ์กํธ
- react
- AWS
- ์๋ฐ์คํฌ๋ฆฝํธ
- sap
- ์ธ๊ณต์ง๋ฅ
- DFS
- abap
- nlp
- github
Archives
- Today
- Total
๋ชฉ๋กcomponent (1)
Hey Tech
[React] ์๋ฌ ํด๊ฒฐ: "Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it."
โ๏ธ์๋ฌ ์ํฉ return์์ ์๋์ ๊ฐ์ด ์ฝ๋ ์์ฑ ํ ์คํ ์ ์๋ฌ ๋ฐ์ return ( {function} ) ๐์๋ฌ ๋ฉ์์ง Functions are not valid as a React child. This may happen if you return a Component instead of from render. Or maybe you meant to call this function rather than return it. โ ํด๊ฒฐ์ฑ ๋ค์๊ณผ ๊ฐ์ด ํจ์๋ช ๋ค์ ๊ดํธ ๋ถ์ฌ์ฃผ๋ฉด ํด๊ฒฐ๋ฉ๋๋ค. return ( {function()} ) ํฌ์คํ ๋ด์ฉ์ ์ค๋ฅ๊ฐ ์๋ค๋ฉด ์๋์ ๋๊ธ ๋จ๊ฒจ์ฃผ์ธ์. ๊ทธ๋ผ ์ค๋๋ ์ฆ๊ฑฐ์ด ํ๋ฃจ ๋ณด๋ด์๊ธธ ๋ฐ๋๋๋ค :) ๊ณ ๋ง์ต๋๋ค๐
SW ๊ฐ๋ฐ/React JS
2022. 7. 1. 18:05