DevMountain / dev-chat

0 stars 7 forks source link

Step 1 - Detailed Instructions #1

Open devlemire opened 7 years ago

devlemire commented 7 years ago

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. Import Provider from React Redux and store from src/store.js. Wrap the App component in Provider, passing store 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. Import Provider from React Redux and store from ./store.js. Wrap the App component in Provider, passing store as a prop.

When following along with the instructions and importing store from src/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.

r-walsh commented 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.