Open devlemire opened 7 years ago
That will be the case throughout, I've been using file paths relative to the root of the project. This makes it easier for students to find files as they jump around. It can cause some confusion when importing things, but they'll learn quickly. It also gives cause to actually think about where each of these files is coming from relative to where they're working.
Very minor change here.
Original: That's all it takes to configure the store to use the new middleware! Go ahead and open
src/index.js
and take the standard steps to connect the application to Redux. ImportProvider
from React Redux andstore
fromsrc/store.js
. Wrap theApp
component inProvider
, passingstore
as a prop.New: That's all it takes to configure the store to use the new middleware! Go ahead and open
src/index.js
and take the standard steps to connect the application to Redux. ImportProvider
from React Redux andstore
from./store.js
. Wrap theApp
component inProvider
, passingstore
as a prop.When following along with the instructions and importing
store
fromsrc/store.js
you will receive a failed to compile error. After looking at the solution for index.js in the same step I found out you need to use./store.js
for the import.