Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jonas - Project movies #83

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Jonas - Project movies #83

wants to merge 8 commits into from

Conversation

Jonash189
Copy link

…movie data fetched from the API, and then utilized useEffect to handle the data retrieval. After mapping through the data, I passed the relevant props to the MovieCard component. 2. Creating the MovieCard Component: I created a function that takes the movie prop, containing the API data from MovieList. Within this function, I returned a JSX structure to display the movie’s title and release date. 3. Styling with Styled Components: I imported styled-components and began styling the MovieList component to enhance its appearance.
…ensure the API fetch only runs once when the component loads. In the MovieDetails function, I use useEffect to fetch data from the API to retrieve the movie details. Finally, I define a return statement that displays the movie's background image, poster image, title, overview, and average rating.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants