Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@ export const Signup = () =>

### Props

Only two props!
Only four props!

- `name: string`: LocalStorage key to save form state to
- `debounce:? number`: Default is `300`. Number of ms to debounce the function that saves form state.
- `isSessionStorage:? boolean`: default is `false` . Send if you want Session storage inplace of Local storage
- `ignoreFields:? string[]`: Array of fields that will not be persisted to storage.


## Author
Expand All @@ -48,5 +50,5 @@ Only two props!

## Todo

- Alternative storages (localForage, sessionStorage)
- Alternative storages (localForage)
- Support AsyncStorage for React Native
Loading