강의

멘토링

커뮤니티

Inflearn Community Q&A

leafcc909172's profile image
leafcc909172

asked

Node and React series that you can learn by following - Creating a movie site

Movie App Series #5 Grid Card Component (Learn React Node by Following)

화면이 짜부가 됬습니다..

Written on

·

322

0

그리드가 설정이 되야되는데 안먹히네요..

antd 문제인가해서 모듈도 지워봤는데 먹통입니다.

<Row gutter={[16,16]}>
                    {movies && movies.map((movieindex)=>(
                        <React.Fragment key={index}>
                            <GridCards 
                                landingPage
                                image={movie.poster_path ? 
                                    `${IMAGE_BASE_URL}w500${movie.poster_path}`null}
                                movieId={movie.id}
                                movieName={movie.original_title}
                            />
                        </React.Fragment>
                    ))}
                    
                </Row>

const GridCards = (props=> {
    return (
        <Col lg={6} md={8} xs={24}>
            <div style={{position: 'relative'}}>
                <a href={`/movie/${props.movieId}`}>
                        <img style={{width:'100%'height:'320px'}} src={props.image} alt={props.movieName}/>
                    </a>              
            </div>
        </Col>
    )
}

express웹앱nodejsmongodbreact

Answer 2

0

John Ahn님의 프로필 이미지
John Ahn
Instructor

아 넵  수고하셨습니다 ~ !!! 

0

leafcc909172님의 프로필 이미지
leafcc909172
Questioner

antd 문제였습니다. 

material-ui  Grid 사용하니 해결되네요

leafcc909172's profile image
leafcc909172

asked

Ask a question