1.0.0 • Published 5 years ago
react-user-safe-state v1.0.0
react-use-safe-state
react-use-safe-state is an utility hook that wraps around react's useState with the aim to prevent the occuring of the famous Can't perform a React state update on an unmounted component error.
Installation
# Yarn
yarn add react-use-safe-state
# NPM
npm install react-use-safe-state --saveUsage
Using react-use-safe-state is as simple as replacing useState hooks with useSafeState.
1.0.0
5 years ago