# reactComponent **Repository Path**: skycoin/react-component ## Basic Information - **Project Name**: reactComponent - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-04-12 - **Last Updated**: 2021-04-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### 安装 less 推荐网址:https://www.cnblogs.com/fangdongdemao/p/10947229.html 遇到问题:https://blog.csdn.net/qq_42430948/article/details/113552673 ## 无法使用 className 通过变量名进行引入 `import styles from './index.m.less'` 解决网址:https://blog.csdn.net/weixin_42429288/article/details/98503339 ## 路由使用 react-router ## 配置 webpack.config.js 中德 alias 注释 plugin 中的,否则一致会提示不在.src 目录 ```js new ModuleScopePlugin(paths.appSrc, [ paths.appPackageJson, reactRefreshOverlayEntry, ]), alias: { // Support React Native Web // https://www.smashingmagazine.com/2016/08/a-glimpse-into-the-future-with-react-native-for-web/ "react-native": "react-native-web", // Allows for better profiling with ReactDevTools ...(isEnvProductionProfile && { "react-dom$": "react-dom/profiling", "scheduler/tracing": "scheduler/tracing-profiling", }), ...(modules.webpackAliases || {}), "@": rootPath + "src", views: rootPath + "images", }, ```