React Promise Hook
React hook with the promise that gives you an ability to react on after set effect
Usage
const App = { const test setTest = if !test return <div className="App"> <header className="App-header"> <span role="img" aria-label="img"> 🤓 </span> The Answer is test </header> </div> }
Demo
Installation
npm i react-promise-hook
or
yarn add react-promise-hook
Made with ♥ by nudelx