exampleComponent.js 355 B

123456789101112131415161718192021222324
  1. import React from 'react';
  2. import { connect } from 'react-redux';
  3. //import * as actions from '../actions.js';
  4. function Example() {
  5. return <div>
  6. Example
  7. </div>;
  8. }
  9. function stateToProps() {
  10. return {};
  11. }
  12. function dispatchToProps(dispatch) {
  13. return {};
  14. }
  15. export default connect(stateToProps, dispatchToProps)(Example);