Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React, { Component } from "react";
- import { getFirstAndSecondAction } from "actions/getFirstAndSecondAction";
- class MyComponent extends Component {
- static async getInitialProps({ store }) {
- // Trigger the saga sequence
- store.dispatch(getFirstAndSecondAction());
- return {};
- }
- render() {
- return (
- <div>
- <p>My Component</p>
- </div>
- );
- }
- }
- export default MyComponent;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement