Skip to content
Advertisement

How to add inline styles in react?

I’m new to react. I’ve tried {{style=color: "red"}} but this gives me an error. Appreciate if you can help me.

Advertisement

Answer

It’s easy to add inline styles in react. style={{color: "red"}} this is how you do it.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement