1.0.0 • Published 10 months ago

@remyar/react-store v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

react-navigation

Navigation provider for react

Installation

This library was built with React >=18 in mind. It might work on lower versions as well, but the lib is developed for and tested on those versions.

npm install @remyar/react-store --save

Usage

The lib exposes the following methods:

StoreProvider

import { StoreProvider } from '@remyar/react-store';
...

 root.render(
        <React.Fragment>
            <StoreProvider extra={{}} globalState={{}} persistConfig={{}}>
                 <App /> --> Your Application
            </StoreProvider>
        </React.Fragment>
    );

withStoreProvider

import { withStoreProvider } from '@remyar/react-store';
...

function YourReactComponent(props) {

    const globalState = props.globalState
    
    return <div>
        <MenuItem onClick={() => {
                await props.dispatch(actions.database.get());
            }}>
        </MenuItem>
        </div>
}

export default withStoreProvider(YourReactComponent);
1.0.0

10 months ago

0.0.8

10 months ago

0.0.7

10 months ago

0.0.6

10 months ago

0.0.5

10 months ago

0.0.4

10 months ago

0.0.3

10 months ago

0.0.2

10 months ago

0.0.1

10 months ago