devmarkrom / crunchyroll-competitor

0 stars 0 forks source link

Move constants outside the component logic #3

Open brion25 opened 5 years ago

brion25 commented 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

https://github.com/markozromero/crunchyroll-competitor/blob/6cb347dab32848ddab24736f484d2b456d2c8951/src/components/Home.js#L22

devmarkrom commented 5 years ago

sure