setup a context API using custom hook in application where we can call all APIs from single source and use the exported variables/states in any component. This will also help us in preventing unwanted repetitive API calls.
also add a feature to restore state on webpage reload by using either localstorage or sessionstorage.
setup a context API using custom hook in application where we can call all APIs from single source and use the exported variables/states in any component. This will also help us in preventing unwanted repetitive API calls. also add a feature to restore state on webpage reload by using either localstorage or sessionstorage.