Skip to content
Advertisement

How can you add 2 classname in a single div in next js?

I tried to add two classname form styles but I could not add two CSS classes in a single div.

Here is the screenshot: enter image description here

enter image description here

my code is as follows:

blog.js

JavaScript

Home.module.css

JavaScript

Advertisement

Answer

Instead of using single quote, you need to use backtick for template string:

JavaScript

Check out this for more context

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