fac19 / week10-Chlat

https://lets-go-pokemon-battle.netlify.app/
1 stars 0 forks source link

Buttons Component #26

Open tacotoemeck opened 4 years ago

tacotoemeck commented 4 years ago

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).