react-workshop
  • Welcome to a React workshop!
  • Intro
  • Your very first React app
  • Using JSX and props
  • Connecting to a server
  • A mini-version of IMDB
  • Finally, off to production! 🚀
  • Outro
Powered by GitBook
On this page
  • First example: show cards about each movie
  • Second example: add a search field or dropdown to filter!

A mini-version of IMDB

...sort of!

PreviousConnecting to a serverNextFinally, off to production! 🚀

Last updated 6 years ago

The last assignment is mostly up to yourself, and what you would like to focus on. Now, use what you have learnt about React so far this week to build upon the previous assignments and create something cool that excites you - having fun is the greatest way to learn! As a starting aid, we supply you with two examples of directions you can take. We believe that these examples will be fun to implement, and illustrates nicely why dynamic React applications works well to build frontend applications!

First example: show cards about each movie

One of us, Kristofer, chose to begin to implement a pretty cool movie app, showing a list of posters, where you can click on each of them to get more information about the movie. Take a look at the link below, and click around to get ideas for your own app!

Second example: add a search field or dropdown to filter!

Add a search field or dropdown to filter the movie list. You may for example filter on the vote_count or vote_average variable in the movie object. An example of how you can easily filter the movie list based on a vote threshold value:

function MovieList(props) {
  return (
    <div className="movie-list">
      <h1>Movie list</h1>
      {props.movies
        .filter(movie => movie.vote_average > props.voteThreshold)
        .map(movie => (
          <Movie title={movie.title} length={movie.length} />
      ))}
    </div>
  );
}

React App
Kristofer's Proof of concept
Logo