Skip to content

Commit

Permalink
chore(): restore plq namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Akurganow committed Oct 25, 2019
1 parent b6d88ac commit 49a60b0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Persists the state to localStorage, sessionStorage or anything else that impleme
## Example

```jsx
import createPersistedState from '@Akurganow/use-persisted-state'
import createPersistedState from '@plq/use-persisted-state'

const [usePersistedState] = createPersistedState('example')

Expand All @@ -25,14 +25,14 @@ export default function App() {

Little bit closer to real life:

[![Edit @Akurganow/use-persisted-state](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/plquse-persisted-state-ob2od?fontsize=14)
[![Edit @plq/use-persisted-state](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/plquse-persisted-state-ob2od?fontsize=14)

## Requirement
To use `@Akurganow/use-persisted-state`, you must use `[email protected]` or greater which includes Hooks.
To use `@plq/use-persisted-state`, you must use `[email protected]` or greater which includes Hooks.

## Clear Storage
```jsx
import createPersistedState from '@Akurganow/use-persisted-state'
import createPersistedState from '@plq/use-persisted-state'

const [usePersistedState, clear] = createPersistedState('example')

Expand All @@ -53,7 +53,7 @@ export default function App() {

## Use sessionStorage
```jsx
import createPersistedState from '@Akurganow/use-persisted-state'
import createPersistedState from '@plq/use-persisted-state'

const [usePersistedState] = createPersistedState('example', window.sessionStorage)

Expand All @@ -72,7 +72,7 @@ export default function App() {
```
## Use custom storage
```jsx
import createPersistedState from '@Akurganow/use-persisted-state'
import createPersistedState from '@plq/use-persisted-state'

const myStorage = {
getItem: (key) => getItemFromSomeStorage(key)
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@Akurganow/use-persisted-state",
"name": "@plq/use-persisted-state",
"version": "0.1.0",
"description": "useState hook with persistance in storage",
"main": "lib/index.js",
Expand Down

0 comments on commit 49a60b0

Please sign in to comment.