Keerat666 / Lumix

An open source crowd developed React UI Library
https://lumix.onrender.com
Apache License 2.0
8 stars 17 forks source link

setup a context API with custom hook eg. ApiContext #46

Open vkushal28 opened 1 year ago

vkushal28 commented 1 year ago

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.