Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

Commit

Permalink
Fix example to work with React as peer dependency
Browse files Browse the repository at this point in the history
See #4
  • Loading branch information
zpao committed Aug 14, 2014
1 parent 1610ccd commit 0df60b2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions examples/simple/app.js
Expand Up @@ -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();

Expand Down
4 changes: 3 additions & 1 deletion examples/simple/package.json
Expand Up @@ -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"
}
}

0 comments on commit 0df60b2

Please sign in to comment.