Custom hooks in React are a powerful feature that allows you to encapsulate and reuse stateful logic across different components. They are essentially JavaScript functions that can use React hooks internally. By creating custom hooks, you can abstract away complex logic, making your components cleaner and more manageable.
Read about swr and react-query
usePrev
hook that we have made indeed correct? Try out this example https://giacomocerquone.com/blog/life-death-useprevious-hook/usePrev
Explore https://usehooks.com/