inflearn logo
Course

Course

Instructor

yodoree0730's Posts

yodoree0730 yodoree0730

@yodoree0730

Reviews Written
1
Average Rating
4.0

Posts 3

Q&A

이미지를 띄울때

개발 모드가 아니라면 어떻게 되나요??

Likes
0
Comments
2
Viewcount
224

Q&A

안녕하세요 질문있습니다.

으아... 찾아주셔서 감사합니다....못찾아서 몇일 헤맷네요 왜 안되나

Likes
0
Comments
2
Viewcount
198

Q&A

이미지를 다이나믹하게 처리하라는 말씀이 어떤걸까요?

아아 이해했습니다!! 그런데 아래와같이 이미지를 DB에서 불러올때 map함수를 돌릴때 왜 localhost:5000/${item} 이런식으로 불러오는건가요? 그냥 original : item 이렇게 하는 게 아니라요?? useEffect ( () => { if (props . detail . images && props . detail . images . length > 0 ) { let images = [] ; props . detail . images . map ( item => { images . push ( { original : ` http://localhost:5000/ ${ item }` , thumbnail : ` http://localhost:5000/ ${ item }` } ) ; } ) ; setImages (images) ; }

Likes
0
Comments
2
Viewcount
198