Quantcast
Browsing latest articles
Browse All 3 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 latest articles
Browse All 3 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>