React for Beginners - Episode 3 - Adding assets to your isomorphic application (using…
Valerii Iatsko

With the change on the javascript pack filename to:

`filename: ‘[name]-[hash].js’`

I think it’s also necessary to update the script src attribute in default.jsx.

 process.env.NODE_ENV === ‘development’ ?
 `http://${webpackHost}:${webpackPort}/assets/main.js` :

I ended up changing it to the following (but I could be missing something? Should it be different when not in development?):

 src={ assets.javascript.main }

(I’m really new to React and couldn’t figure out why my onClicks weren’t working properly until I noticed that my app was unable to load ‘main.js’. Thanks for the tutorial! It has been extremely helpful.)