Open brion25 opened 5 years ago
It seems days is a constant, please move it outside the component so you don't need to create it each time the function getDay is called
days
getDay
https://github.com/markozromero/crunchyroll-competitor/blob/6cb347dab32848ddab24736f484d2b456d2c8951/src/components/Home.js#L22
sure
It seems
days
is a constant, please move it outside the component so you don't need to create it each time the functiongetDay
is calledhttps://github.com/markozromero/crunchyroll-competitor/blob/6cb347dab32848ddab24736f484d2b456d2c8951/src/components/Home.js#L22