Hooks React hook for using local storage Aug 27, 2019 1 min read react-use-localstorage ⚓ React hook for using local storage View Demo View Github ## How to use it import React from 'react'; import ReactDOM from 'react-dom'; import useLocalStorage from 'react-use-localstorage'; import './styles.css'; function App() { const [item, setItem] = useLocalStorage('name', 'Initial Value'); return ( <div className="App"> <h1>Set Name to store in Local Storage</h1> <div> <label> Name:{' '} <input type="text" placeholder="Enter your name" value={item} onChange={e => setItem(e.target.value)} /> </label> </div> </div> ); } const rootElement = document.getElementById('root'); ReactDOM.render(<App />, rootElement); JavaScript Demo GitHub dance2die/react-use-localstorage?? — Read MoreDownload as zip Hooks
Hooks Manage temporary UI elements with react hook allowing you to show or hide an element Manage temporary UI elements with react hook allowing you to show or hide an element 19 January 2024
Hooks A Tiny Custom React hooks for making request A Tiny Custom React hooks for making request 15 November 2023
State An enchanced useState hook which keeps track of the states history, allowing you to undo and redo states An enchanced useState hook which keeps track of the states history, allowing you to undo and redo states. 29 September 2023