Relative Content

Tag Archive for javascripthtmlreactjsimage

Conditional image source for a react project

I am practicing React JS lately, I am fetching cast data from TMDB for the project and using the profile_path data for image source. What my problem is now since some of the cast has null as their profile_path, I could not figure out how to display that. I know Java very well but I am new to JavaScript.