Using Object.assign function, I was able to generate hero and opponents' html via template strings, and replace opponents with an if function, the width of the indicative health bar also changes with the health level, for better user experience, there is a second delay between changing opponents.
React Movie App
Get In Touch
Like what you see? I would love to get in touch with you!