Skip to content

Commit 7f44460

Browse files
committed
Remove unrelated tip
This tip was about `webpack-hot-middleware` and unrelated to this transform. It is now here: https://github.com/gaearon/react-transform-boilerplate/blob/master/README.md#i-dont-see-the-syntax-error-overlay
1 parent c72fbc5 commit 7f44460

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

README.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -69,19 +69,6 @@ It must be an array of the transforms you want to use:
6969

7070
**It is up to you to ensure that the transform is not enabled when you compile the app in production mode.** The easiest way to do this is to put React Transform configuration inside `env.development` in `.babelrc` and ensure you’re calling `babel` with `NODE_ENV=production`. See [babelrc documentation](https://babeljs.io/docs/usage/babelrc/#env-option) for more details about using `env` option.
7171

72-
## Hints
73-
74-
Make sure your react-app is not attached to `document.body` as the client-overlay will render into `document.body`.
75-
Attaching the react root-node to `document.body` requires extra caution, as many third-party packages will append their markup to the body as well. React will replace the entire contents in the body on every re-render. Thus you will not see the additional markup.
76-
Better provide a `#root`-Element.
77-
78-
```js
79-
import React from 'react'
80-
import { App } from 'app'
81-
82-
React.render(<App />, document.getElementById('root'))
83-
```
84-
8572
## License
8673

8774
MIT

0 commit comments

Comments
 (0)