Advertisement
Guest User

Untitled

a guest
Mar 26th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. import React, { Component } from "react";
  2. import { getFirstAndSecondAction } from "actions/getFirstAndSecondAction";
  3.  
  4. class MyComponent extends Component {
  5. static async getInitialProps({ store }) {
  6.  
  7. // Trigger the saga sequence
  8. store.dispatch(getFirstAndSecondAction());
  9.  
  10. return {};
  11. }
  12. render() {
  13. return (
  14. <div>
  15. <p>My Component</p>
  16. </div>
  17. );
  18. }
  19. }
  20.  
  21. export default MyComponent;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement