↧
Answer by Avanthika for Imports path in react
Use webpack's resolve: https://webpack.js.org/configuration/resolve/resolve: { modules: ['src/redux', 'node_modules'], extensions: ['.jsx', '.js'], unsafeCache: true, alias: { actions:...
View ArticleAnswer by Jibin Mathews for Imports path in react
You can give a alias in your module exportsalias: { src: path.resolve(__dirname +'/root')}Then you can do something like:import { groupAddTeacher }from 'root/redux/actions/group'
View ArticleImports path in react
Hello I have a lot of imports to reducex e.g. import {groupAddTeacher} from "../../../../../../redux/actions/group";import {groupAddEvent} from "../../../../../../redux/actions/group";How can I replace...
View Article