Popularity
0.2
Stable
Activity
8.1
Stable
1
1
0
Programming language: JavaScript
Tags:
Code Design
Data Store
Latest version: v0.2.0
react-storage-hoc alternatives and similar libraries
Based on the "Data Store" category.
Alternatively, view react-storage-hoc alternatives based on common mentions on social networks and blogs.
-
recompose
A React utility belt for function components and higher-order components. -
mobx-react
React bindings for MobX. Create fully reactive components. -
reflux
A simple library for uni-directional dataflow application architecture with React extensions inspired by Flux -
fluxible
A pluggable container for universal flux applications. -
cerebral
Declarative state and side effects management for popular JavaScript frameworks -
redux-batched-actions
redux higher order reducer + action to reduce actions under a single subscriber notification -
shasta
Dead simple + opinionated toolkit for building redux/react applications -
redux-batched-subscribe
store enhancer for https://github.com/reactjs/redux which allows batching subscribe notifications. -
react-i13n
A performant, scalable and pluggable approach to instrumenting your React application. -
fluorine-lib
Reactive state and side effect management for React using a single stream of actions. -
react-controllables
Easily create controllable components -
react-redux-provide
Bridges the gap between Redux and the declarative nature of GraphQL/Relay. Share, manipulate, and replicate application state across any number of components. -
fireproof
Realtime database, runs anywhere. Install Fireproof in your front-end app or edge function, and sync data via any backend. -
resourcerer
Declarative data-fetching and caching framework for REST APIs with React -
synergies
Create a performant distributed context state for React by composing reusable state logic.
SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
Promo
surveyjs.io
Do you think we are missing an alternative of react-storage-hoc or a related project?
README
react-storage-hoc
Local and session storage higher-order component for React.
Installation
Via npm
:
npm i --save react-storage-hoc
Via yarn
:
yarn add react-storage-hoc
Basic Example
import React from 'react';
import { withLocalStorage } from 'react-storage-hoc';
class App extends React.Component {
render() {
const { localStorage } = this.props;
const count = localStorage.count || 0;
const incCount = () => (localStorage.count = 1 + count);
const resetCount = () => delete localStorage.count;
return (
<div>
<p>{count}</p>
<button onClick={incCount}>inc</button>
<button onClick={resetCount}>reset</button>
</div>
);
}
}
export default withLocalStorage(App);
Examples
These interactive CodeSandbox examples showcase how to use react-storage-hoc
.
*Note that all licence references and agreements mentioned in the react-storage-hoc README section above
are relevant to that project's source code only.