fac-13 / GP_ProjectBernadette

My Wayfinder - A React decision tree app to help carers understand jargon and find relevant resources more quickly.
https://my-wayfinder.herokuapp.com/
5 stars 5 forks source link

Moving styled component out of render method #97

Closed matthewdking closed 6 years ago

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