Minor docs update

This commit is contained in:
Nicolas Gallagher
2016-02-19 13:17:39 -08:00
parent 791ede06dd
commit 2b90bd736f
2 changed files with 26 additions and 5 deletions

View File

@@ -1,5 +1,21 @@
# Client and Server rendering
It's recommended that you use a module loader that supports package aliases
(e.g., webpack), and alias `react-native` to `react-native-web`.
```js
// webpack.config.js
module.exports = {
// ...other configuration
resolve: {
alias: {
'react-native': 'react-native-web'
}
}
}
```
## Client-side rendering
```js