The best place to keep this operation is in the store file because that is the only module it requires. We can also create a new file, require the store module and import it back to the store. However, if this is a typescript project, this is going to throw an error.
The best place to keep this operation is in the store file because that is the only module it requires. We can also create a new file, require the store module and import it back to the store. However, if this is a typescript project, this is going to throw an error.