I configure the introduction of less in create-react-app by installing react-app-rewire-less in the way that the official website of antd is installed.
there is no problem with className = "header" if you directly import". / App.less", and then use it.
but less will have no effect if className= {styles.header} is used in import styles". / App.less",. Excuse me, what is the reason for this?