From 7eae6824d302d4a38d434eefd75e8521bedc2d74 Mon Sep 17 00:00:00 2001 From: Zalmoxisus Date: Sun, 24 Jan 2016 11:26:26 +0200 Subject: [PATCH] Add example of configuring with parameters --- README.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 54dc565..71b901d 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,8 @@ Also, it can be [used in React Native debugger as a dock monitor](https://github In order to make it simple to use, by default, the module and the monitor app communicate via [remotedev.io](http://remotedev.io) server. Use [remotedev-server](https://github.com/zalmoxisus/remotedev-server) cli to run it locally in order to make the connection faster and not to require an internet connection. -### Props + +### Parameters Name | Description ------------- | ------------- @@ -60,6 +61,18 @@ Name | Description All props are optional. You have to provide at least `port` property to use `localhost` instead of `remotedev.io` server. +Example: +```js +export default function configureStore(initialState) { + const finalCreateStore = compose( + devTools({ hostname: 'localhost', port: 8000, name: 'Android app' }) + )(createStore); + + const store = finalCreateStore(rootReducer, initialState); + return store; +} +``` + ### Examples - [Web](https://github.com/zalmoxisus/remote-redux-devtools/tree/master/examples) - [React Native](https://github.com/zalmoxisus/react-native-counter-ios-android).