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 = object.poster; this.matchedInPlex = object.matchedInPlex; this.overview = object.overview; } requestExisting(id) { console.log('Exists', id) } requestMovie(id) { console.log(id); } getElement() { var returnList = [] returnList.push(
{this.title} ({this.year})
) var posterPath, buttonState; if (this.poster != undefined) { posterPath = 'https://image.tmdb.org/t/p/w150' + this.poster; } returnList.push(