mars / heroku-cra-node

⚛️ How to use create-react-app with a custom Node server on Heroku
MIT License
927 stars 226 forks source link

Use `res.json` to return JSON #23

Closed danawoodman closed 6 years ago

danawoodman commented 6 years ago

A little bit cleaner

danawoodman commented 6 years ago

Ok, up to you! I just feel sending a JavaScript object to a method called json is clearer than setting headers and passing a JSON string, but it’s your repo 👍