diff --git a/lessons/03-navigating-with-link/README.md b/lessons/03-navigating-with-link/README.md index c1aaa332..fd1518d8 100644 --- a/lessons/03-navigating-with-link/README.md +++ b/lessons/03-navigating-with-link/README.md @@ -1,7 +1,7 @@ # Navigating with Link -Perhaps the most used component in your app is `Link`. Its almost -identical to the `` tag you're used to except that its aware of +Perhaps the most used component in your app is `Link`. It's almost +identical to the `` tag you're used to except that it's aware of the `Router` it was rendered in. Let's create some navigation in our `App` component. diff --git a/lessons/06-params/README.md b/lessons/06-params/README.md index e5066a2e..d165bc7e 100644 --- a/lessons/06-params/README.md +++ b/lessons/06-params/README.md @@ -19,7 +19,7 @@ parsed out and made available to route components on ## Adding a Route with Parameters -Lets teach our app how to render screens at `/repos/:userName/:repoName`. +Let's teach our app how to render screens at `/repos/:userName/:repoName`. First we need a component to render at the route, make a new file at `modules/Repo.js` that looks something like this: diff --git a/lessons/11-productionish-server/README.md b/lessons/11-productionish-server/README.md index 0dc31466..30582eba 100644 --- a/lessons/11-productionish-server/README.md +++ b/lessons/11-productionish-server/README.md @@ -27,6 +27,16 @@ scripts entry in package.json to look like this: }, ``` +In the root directly, go open up `webpack.config.js` and add the publicPath '/' as per below: +``` +// webpack.config.js + output: { + path: 'public', + filename: 'bundle.js', + publicPath: '/' + }, +``` + When you run `npm start` it checks if the value of our `NODE_ENV` environment variable is `production`. If yes, it runs `npm run start:prod`, if not, it runs `npm run start:dev`. @@ -38,7 +48,6 @@ first attempt: // server.js var express = require('express') var path = require('path') -var compression = require('compression') var app = express() diff --git a/lessons/13-server-rendering/README.md b/lessons/13-server-rendering/README.md index 4a631854..a8aa94b7 100644 --- a/lessons/13-server-rendering/README.md +++ b/lessons/13-server-rendering/README.md @@ -152,7 +152,7 @@ import routes from './modules/routes' app.get('*', (req, res) => { // match the routes to the url match({ routes: routes, location: req.url }, (err, redirect, props) => { - // `RouterContext` is the what `Router` renders. `Router` keeps these + // `RouterContext` is what the `Router` renders. `Router` keeps these // `props` in its state as it listens to `browserHistory`. But on the // server our app is stateless, so we need to use `match` to // get these props before rendering.