lindelwa122 / dom-wizard

JavaScript library that makes DOM manipulation easy and more managable.
MIT License
7 stars 8 forks source link

store.updateState #11

Open lindelwa122 opened 9 months ago

lindelwa122 commented 9 months ago

store.updateState

store

The store will hold variables that are intended to be accessible throughout the app. Users will be able to retrieve and modify these variables from anywhere within the app.

updateState

Parameters/Input:

The updateState() function takes a key and a newValue, and it updates the property associated with that key. If the key doesn't exist, it throws an error.

dipesh2508 commented 9 months ago

So, I am working on this feature right now, will be updating the process

dipesh2508 commented 9 months ago

image All Test Cases passed, will be raising a PR after a bit of documentation.

dipesh2508 commented 9 months ago

I've raised a PR, kindly check.