Line in question:
<Poster
info="info"
id={movie.id}
path={movie.poster_path}
title={movie.title}
popularity={movie.popularity}
genres={genres}
responsive="responsive"
/>
Should be really simple i just cant work out how to change responsive="responsive" into the right boolean what is it expecting?
Thanks
The component Poster expects responsive
prop to be a boolean and not a string. A boolean true value can simply be passed like
<Poster
info="info"
id={movie.id}
path={movie.poster_path}
title={movie.title} popularity={movie.popularity}
genres={genres}
responsive
/>
or
<Poster
info="info"
id={movie.id}
path={movie.poster_path}
title={movie.title} popularity={movie.popularity}
genres={genres}
responsive={true}
/>
and a false value can be given like
<Poster
info="info"
id={movie.id}
path={movie.poster_path}
title={movie.title} popularity={movie.popularity}
genres={genres}
responsive={false}
/>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With