I have created a movie list component with different attributes in the div section to display the cards in a row. However, all the cards are currently aligned in a column. Should I use flex or grid to achieve the desired layout? If so, how can I implement them? I have consulted various resources but haven't been successful. What steps should I take to display the cards as I intend? Your assistance is greatly appreciated.
import React, { useState } from 'react';
import { useSelector } from 'react-redux';
import MovieCard from './MovieCard';
const MoviesList = (props) => {
// Component logic
}
export default MoviesList;
And here is the Movie card component:
import React from 'react';
import { useDispatch } from 'react-redux';
import { removeMovie } from '../actions/moviesAction';
const MovieCard = (props) => {
// Component logic
}
export default MovieCard;
I would appreciate your help in resolving this issue. Thank you.