react-offline-sync

1.1.5 • Public • Published

react-offline-sync

React offline sync with redux and reactstrap.

demo

Description

  • This app aims to provide solution for offline syncing the app without hindering user interaction.

  • Wrap you components using HOC withPendingRequest ( ./src/withPendingRequest ).

  • The HOC handles api calls as user gets back online.

Usage

Step: 1 import withPendingRequest from 'react-offline-sync'; step: 2 export default connect(mapStateToProps, mapDispatchToProps)(withPendingRequest(Home)); step: 3 import offlineMiddleware from 'react-offline-sync'; step: 4 applyMiddleware(offlineMiddleware);

Installation

  1. Clone or Download the repository

$ git clone https://github.com/SystangoTechnologies/react-offline-sync.git

  1. Start the app

$ npm start

Your app should now be running on localhost:8000

Contributors

License

Built under MIT license.

Readme

Keywords

none

Package Sidebar

Install

npm i react-offline-sync

Homepage

.

Weekly Downloads

5

Version

1.1.5

License

MIT

Unpacked Size

5.01 MB

Total Files

126

Last publish

Collaborators

  • rishabh-systango