I noticed that there's little repetition within the return (html) part. Maybe you could modularize the code slightly? I was thinking that "health-bars" and "button" elements could be made into separate components to which you could pass props? It would make your code more modular. ( Not sure if this would be a better practice though, I'm still trying to understand what's the "best way of doing things" is in react).
I noticed that there's little repetition within the return (html) part. Maybe you could modularize the code slightly? I was thinking that "health-bars" and "button" elements could be made into separate components to which you could pass props? It would make your code more modular. ( Not sure if this would be a better practice though, I'm still trying to understand what's the "best way of doing things" is in react).