VS Code giving different autocompletion for react redux imports

Viewed 33

Can someone explain the difference between two imports

import { useDispatch } from "react-redux/es/exports"
or 
import { useDispatch } from "react-redux"

import { configureStore } from "@reduxjs/toolkit/dist/configureStore" 
or
import { configureStore } from "@reduxjs/toolkit" 

The official docs have instructions to import from the "react-redux" and "@reduxjs/toolkit" path. Why my VS-code editor shows the former path instead for autocompletion of imports?

0 Answers
Related