React : CSS class name import not working

后端 未结 15 1631
轻奢々
轻奢々 2020-12-31 20:16

i have a

div in my react component and im importing some class name from a class css file, but the class name is not getting integrated to the main
15条回答
  •  长情又很酷
    2020-12-31 20:50

    Actually I've used it like this:

    import classes from './Layout.module.css';
    

    As you see in the text of your question:

    // using the extension .module.css

提交回复
热议问题