Skip to content

Instantly share code, notes, and snippets.

@StevenMeiklejohn
Created February 21, 2023 13:07
Show Gist options
  • Save StevenMeiklejohn/554111c4ff6388700a3aca98aaec94da to your computer and use it in GitHub Desktop.
Save StevenMeiklejohn/554111c4ff6388700a3aca98aaec94da to your computer and use it in GitHub Desktop.

React: Film Releases

Reading

Thinking In React (20 mins)

Practice

You task is to plan and build an application that displays a list of upcoming film titles, each one linking to their imdb page.

Screenshot of example result Screenshot of example result

  • Draw out the UI on paper, breaking it down into components.
  • Draw a component hierarchy diagram, noting down any state and props for each component.
  • Implement the application in React.

Note: The 'View more upcoming releases' button can link to the imdb calendar page - https://www.imdb.com/calendar/?region=gb

Data

You can use the following data to display in your application:

[
  {
    id: 1,
    name: "Spider-Man: Into the Spider-Verse",
    url: "https://www.imdb.com/title/tt4633694/?ref_=rlm"
  },
  {
    id: 2,
    name: "Life Itself",
    url: "https://www.imdb.com/title/tt5989218/?ref_=rlm"
  },
  {
    id: 3,
    name: "Mary Queen of Scots",
    url: "https://www.imdb.com/title/tt2328900/?ref_=rlm"
  },
  {
    id: 4,
    name: "The Lego Movie 2: The Second Part", url: "https://www.imdb.com/title/tt3513498/?ref_=rlm"
  },
  {
    id: 5,
    name: "Captain Marvel",
    url: "https://www.imdb.com/title/tt4154664/?ref_=rlm"
  }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment