require("./add") console.log(add(4, 6)) •Browsers don’t have access to your local filesystem •Even if you can require individual files from the server (i.e. AMD modules) the request is asynchronous
folder, run npm run app • If you haven’t installed Webpack, start a static web server instead •Try changing the language in entry.js congratulations! you now have a modular JS app written in ES6 syntax, compiled by Babel & bundled by Webpack!
each photo in the supplied data •When a PhotoThumb is clicked, store that photo in PhotoApp’s state •Build a PhotoDetail component •Pass the currently selected photo into PhotoDetail as a prop