React : CSS class name import not working

后端 未结 15 1513
轻奢々
轻奢々 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:40

    For latest version no need to set

    localIdentName: '[name][local][hash:base64:5]', // no need set any where

    Just give your css name with postfix like FileName.module.css ex Personal.module.css

    Then class name like below filename_classname_randomstring

    Personal_Person__3L9tz

    it working for me

提交回复
热议问题