Quantcast
Channel: Imports path in react - Stack Overflow
Browsing all 3 articles
Browse latest View live

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 Article



Answer 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 Article

Imports 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
Browsing all 3 articles
Browse latest View live




Latest Images