Skip to content

Instantly share code, notes, and snippets.

Uzbek Developer

Sheralijon turdiyev

Uzbek Developer
Block or report user

Report or block turdiyev

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View use-local-storage-example.js
import { useState, useEffect } from 'react';
// Usage
function App() {
// Similar to useState but we pass in a key to value in local storage
// With useState: const [name, setName] = useState('Bob');
const [name, setName] = useLocalStorage('name', 'Bob');
return (
You can’t perform that action at this time.