I am not understanding a issue here in CSS. In my project I have a case.
I tried to import CSS directly from one of my file like below
import './styles.css'
and tried to use like this and its not working
<div className = 'home'><div>
but when I changed the approach like this , its working
import stat from './styles.css'
usage
<div className = {stat['home']}></div>
Could you please let me know why this is happening. Is this something related to the configuration. What should I do for the direct import
Thanks in advance.