Socket
Socket
Sign inDemoInstall

@aslan-hooks/use-interval

Package Overview
Dependencies
6
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @aslan-hooks/use-interval

A React Hook for using local storage and keeping it in sync with your app


Version published
Weekly downloads
2
increased by100%
Maintainers
1
Install size
419 kB
Created
Weekly downloads
 

Readme

Source

use-local-storage

A React Hook for using local storage and keeping it in sync with your app

Installation Instructions

yarn add @aslan-hooks/use-local-storage

or

npm i --save @aslan-hooks/use-local-storage

Usage Instructions

import React from 'react';

import useLocalStorage from '@aslan-hooks/use-local-storage';

const Component = () => {
  const [text, setText] = useLocalStorage('initialValue');

  return (
    <input type="text" value={text} onChange={e => setText(e.target.value)} />
  )
};

FAQs

Last updated on 04 Feb 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc