didierfranc / didierfranc/react-waterfall

redux-devtools return no store found - 4.0.0-beta.4

Open
#70 10 comments 0 reactions 0 assignees View on GitHub
enhancement react-native
Dominant language
JavaScript
Stars
1.3k
Forks
73
PR merge metrics
No merged PRs in 30d

Description

Hi I passed the example code to react native and works wonderful but redux-devtools doesn't work.

On the documentation you said *During development redux-devtools are automatically enabled. Install the extension.* what's mean automatically enabled? maybe I missed something...

Here is my code:

*store.js*
```
import createStore from 'react-waterfall'

const config = {
initialState: { count: 0 },
actionsCreators: {
increment: ({ count }) => ({ count: count + 1 }),
},
}

export const { Provider, connect, actions } = createStore(config)
```

*App.js*
```
import React from 'react';
import {Button, Text, View} from 'react-native';
import { connect, Provider, actions } from './store'

let Count = ({ count }) => {count}
Count = connect(({ count }) => ({ count }))(Count)

export default class App extends React.PureComponent {

render() {
return (


actions.increment()}/>

);
}
}
```

screen shot 2018-07-12 at 11 33 18 am

Thanks!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.