Answer the question
In order to leave comments, you need to log in
What is the best way to store a user's order?
Good afternoon, I'm making a website on the MERN stack.
What is the best way to store the user's goods that he added to the cart?
Localstorage or have more relevant data. I think it makes sense to store on the server side only for authorized users. And here is more a question with regards to unauthorized
Answer the question
In order to leave comments, you need to log in
If you want the cart to be saved after page refresh, then in locastorage. If this is not critical, then you can store in the application state
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question