Last active
August 26, 2019 22:20
-
-
Save JonnyBurger/b0affc4487b226dadd083c61f982619f to your computer and use it in GitHub Desktop.
package.json fields for Redux remote debugging
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"scripts": { | |
"postinstall": "remotedev-debugger --hostname localhost --port 5678 --injectserver" | |
}, | |
"devDependencies": { | |
"remotedev-rn-debugger": "^0.8.3" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { createStore, applyMiddleware } from "redux"; | |
import { composeWithDevTools } from "remote-redux-devtools"; | |
import reducer from "./reducer"; | |
export default createStore( | |
reducer, | |
applyMiddleware( | |
composeWithDevTools({ | |
port: 5678, | |
hostname: "localhost" | |
}) | |
) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment