exampleComponent.js 315 B

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