<h1>Trending today</h1> <ul> {this.state.trendingMovies.map((movie) => ( <li key={movie.id}> <NavLink to={`/movies/${movie.id}`} className="movie-link"> {movie.title} </NavLink> </li> ))} </ul> Here's what I got. Right now, I am rendering the whole array - but I need to render {movie.title} is not null. Please help me with writing a ternary.
nullfrom themapfunction when you do not wish to render anything, or subset the array before themapfunction using thefilterfunction.