Skip to content

Commit b6b4530

Browse files
committed
Update README
1 parent 9ccd2e9 commit b6b4530

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ This function is asynchronous so you have time to do data fetching before you re
4141

4242
## Environment
4343

44-
Your component file (and, optionally, your render file) are loaded in a node.js environment with Babel's [es2015](https://babeljs.io/docs/plugins/preset-es2015/) and [react](https://babeljs.io/docs/plugins/preset-react/) presets already installed. If you need additional code transforms to run (e.g. using webpack or Browserify) you should create your bundle first and tell react-stdio to load your bundle instead of the plain component file.
44+
Your component file is loaded in a vanilla node.js environment. If you need additional code transforms to run (e.g. using webpack or Browserify) you should create your bundle first and tell react-stdio to load your bundle instead of the plain component file. If you're using webpack to build your bundle, you'll want to use `"libraryTarget": "commonjs2"` in your config so the bundle exports the component using `module.exports = MyComponent`.
4545

46-
Additionally, since react-stdio uses the `stdout` stream for all program output, all writes your code makes to `process.stdout` (including `console.log` statements) are redirected to `process.stderr`.
46+
Also, since react-stdio uses the `stdout` stream for all program output, all writes your code makes to `process.stdout` (including `console.log` statements) are redirected to `process.stderr`.
4747

4848
## Integrations
4949

5050
- [Elixir/Phoenix](http://blog.overstuffedgorilla.com/render-react-with-phoenix/)
5151
- [Ruby on Rails](https://github.com/aaronvb/rails_react_stdio)
5252

53-
If you'd like to add an integration here, please contact [@mjackson](https://twitter.com/mjackson).
53+
If you'd like to add an integration here, please submit a PR.

0 commit comments

Comments
 (0)