Seperating styling from your component will make it reusable.
Stop Styling React Components with Javascript
frontyend
6213

Keeping style inside the component avoids the frequent context switch.

Like what you read? Give Satyajit Sahoo a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.