Open kimsojung318 opened 3 years ago
Template 1) 파일 생성 : LandingPage\Sections\MainImage.js
2) EndPoint 생성 : LandingPage.js const endpoint =${API_URL}movie/popular?api_key=${API_KEY}& language=en-US&page=1;
const endpoint =
;
3) 공통 URL 상수 처리 : Config.js
export const API_URL = "https://api.themoviedb.org/3/"; export const API_KEY = "52dcd192673a08227df3669a120cb168"; export const IMAGE_BASE_URL = "http://image.tmdb.org/t/p/";
오류 1) 내용
2) 해결방법
{MainMoviesImage && <MainImage image={`${IMAGE_BASE_URL}w1280${MainMoviesImage.backdrop_path}`} /> }
Template 1) 파일 생성 : LandingPage\Sections\MainImage.js
2) EndPoint 생성 : LandingPage.js
const endpoint =
${API_URL}movie/popular?api_key=${API_KEY}& language=en-US&page=1;
3) 공통 URL 상수 처리 : Config.js