Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { connect } from 'actox'
- // class App extends Component {}
- function mapStateToProps(state) {
- // Use _getValue to get perticular state or pass default
- // state._getValue('counter.value', 0), second argument is default value
- return {
- counter: state.counter,
- }
- }
- export default connect(mapStateToProps)(App)
Add Comment
Please, Sign In to add comment