Guest User

Untitled

a guest
Jan 22nd, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. import { connect } from 'actox'
  2.  
  3. // class App extends Component {}
  4.  
  5. function mapStateToProps(state) {
  6. // Use _getValue to get perticular state or pass default
  7. // state._getValue('counter.value', 0), second argument is default value
  8. return {
  9. counter: state.counter,
  10. }
  11. }
  12.  
  13. export default connect(mapStateToProps)(App)
Add Comment
Please, Sign In to add comment