EmotionJS: Style effectively!!

Photo by Tengyart on Unsplash
Logo of EmotionJS library

To install Emotion to your React Project

How to use emotion with React

A basic code to create a button component in react code
A basic code to create a button component in react code
Button rendered with the styles

Changing based on props

Button on hover
Button style changed based on condition provided with props
Button style changed according to the state provided

That’s how you can style with emotion in your React app!