I am sort of losing my mind at this. I simply want to write to a JSON file at runtime while debugging my app. I have a redux store state I want to view cleanly in a file while I debug, so I figured I would simply export/write the object to a file.
I am now realizing this is way more confusing to do than I thought, as I cannot simply use Node.js
and fs.writeFile()
Why is this so complicated, and what can I do? If writing to a file on my project directory is not possible, how else can I cleanly view the state of my redux store? console logging the state is way too messy.