How to log react console errors to a file?

Viewed 11390

I am new in front-end/client-side app development for website. I am setting up a new react project. I used create-react-app.

How should I handle the console errors(other than network call errors)? Is there a way to log them in any file?

What are the best logging practices?

1 Answers
Related