DEV Community

Discussion on: Responsive fix for the Next.js Image component

Collapse
 
ivan_jrmc profile image
Ivan Jeremic • Edited

Any reason you use curly braces in className? It is just a string so you can use just a string without curly braces. Good article this helped me fixing a problem I had!

Collapse
 
markwilliams profile image
Mark Williams

I'm guessing it's so it's easier to refactor to using string interpolation.