• T
    Refactor with redux thunk example (#13336) · f3ea363d
    TodorTotev 提交于
    Related to [11014](https://github.com/zeit/next.js/issues/11014)
    
    1. I have changed the component from class to functional.
    2. I have removed the getInitialProps and used getStaticProps instead.
    3. I have removed the redundant connect to redux @ the index page, due to the fact that now we can dispatch the action with the required hook.
    
    If you want me to change anything or you are not satisfied with any given change, I'm open to suggestions.
    f3ea363d
index.js 676 字节