npm

@breadhead/with-redux-store
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

with-redux-store

Usage

import { withReduxStore, WithReduxProps } from '@breadhead/with-redux-store'



class FabulousApp extends App<WithReduxProps<State>> {
  public static async getInitialProps() {
    return {}
  }

  public render() {
    const { Component, pageProps, reduxStore } = this.props

    return (
      <Container>
        <StoreContext.Provider value={reduxStore}>
          <Component {...pageProps} />
        </StoreContext.Provider>
      </Container>
    )
  }
}

export default withReduxStore<State, Api, AppContext>(
  FabulousApp as any,
  initializeStore,
)

Readme

Keywords

none

Package Sidebar

Install

npm i @breadhead/with-redux-store

Weekly Downloads

1

Version

1.1.2

License

MIT

Unpacked Size

276 kB

Total Files

26

Last publish

Collaborators

  • igor.kamyshev
  • iwanttobealight
  • uncleseneca