diff --git a/examples/simple/app.js b/examples/simple/app.js index 473ab54..9700d89 100644 --- a/examples/simple/app.js +++ b/examples/simple/app.js @@ -9,9 +9,9 @@ var user = require('./routes/user'); var http = require('http'); var path = require('path'); -// Use local requires to use live changes. -// require('react-express-views') -var reactViews = require('../../') +// This should refer to the local React and gets installed via `npm install` in +// the example. +var reactViews = require('express-react-views') var app = express(); diff --git a/examples/simple/package.json b/examples/simple/package.json index 0082ddb..6740d02 100644 --- a/examples/simple/package.json +++ b/examples/simple/package.json @@ -3,9 +3,11 @@ "version": "0.0.1", "private": true, "scripts": { + "preinstall": "npm install ../../", "start": "node app.js" }, "dependencies": { - "express": "3.3.5" + "express": "3.3.5", + "react": "^0.11.1" } }