#React CONTEXT / Adding items to Cart
2 messages · Page 1 of 1 (latest)
If you have your pre-defined data in a JSON you can "pretend" that comes from a server since it is pretty much hard coded and use it in your project. You don't need to store your static data in a context at all, you will be able to access that static file from anywhere in the application and that's not a problem at all.