import { ReactReader } from '../../lib/index' import useLocalStorageState from 'use-local-storage-state' import { DEMO_URL, DEMO_NAME } from '../components/config' import { Example } from '../components/Example' export const Persist = () => { const [location, setLocation] = useLocalStorageState( 'persist-location', { defaultValue: 0, } ) return ( setLocation(loc)} /> ) }