RSRohit Sharmainrohitsharmaj7.hashnode.dev·Jan 11, 2022 · 1 min readDealing with [history.push] deprecation in react-router-V6In the react-router-dom v6, the support for history has been deprecated but instead of it navigate has been introduced. if you want to redirect user to a specific page on success of a specific event then follow the steps given below: Create a file wi...00
RSRohit Sharmainrohitsharmaj7.hashnode.dev·Dec 22, 2021 · 2 min readuseState hook in ReactHooks: Hooks are the way to write reusable code rather than using the more classic approach of inheritance in react Rules for the hooks: Don’t call inside loops Don’t call inside conditions Don’t call inside nested function Always use hook at the t...00