diff --git a/client/app/components/MovieObject.jsx b/client/app/components/MovieObject.jsx new file mode 100644 index 0000000..f91d321 --- /dev/null +++ b/client/app/components/MovieObject.jsx @@ -0,0 +1,22 @@ +import React from 'react'; + +class MovieObject { + constructor(object) { + this.id = object.id; + this.title = object.title; + this.year = object.year; + // Check if object.poster != undefined + this.poster = 'https://image.tmdb.org/t/p/w150' + object.poster; + } + + getElement() { + var returnString = [ +
{this.title} ({this.year})
, +