diff --git a/examples/react/README.md b/examples/react/README.md index 7947511d..36d7f879 100644 --- a/examples/react/README.md +++ b/examples/react/README.md @@ -2,7 +2,7 @@ These are the react examples for gun. They are separate from the other examples, because they require a lot of additional npm modules. -To run these modules, change to this directory, and run `npm install` and then `npm start` to start the server. Then navigate to `localhost:3000` to view the examples. +To run these modules, change to this directory, and run `npm install` and then `npm start` to start the server. Then navigate to `localhost:4000` to view the examples. ![examples](https://i.imgur.com/ZXOHWNN.gif) diff --git a/examples/react/server.js b/examples/react/server.js index b755d568..01efb51b 100644 --- a/examples/react/server.js +++ b/examples/react/server.js @@ -4,11 +4,10 @@ import webpack from 'webpack' import WebpackDevMiddleware from 'webpack-dev-middleware' import config from './webpack.config' - const app = express() const gun = Gun() -gun.wsp(app) +Gun({web: app}) const compiler = webpack(config)