Closed matthewdking closed 6 years ago
I'm not sure on best practice for this but I would consider moving the styled components out of the render method. Every time the component gets rerendered the variables will be recreated.
This is the order I would go for...
// imports // styled components // react component
I'm not sure on best practice for this but I would consider moving the styled components out of the render method. Every time the component gets rerendered the variables will be recreated.
This is the order I would go for...