user3718395
user3718395

Reputation: 487

react js console.log is not writing to my terminal

I don't know if I did something wrong.

After I run my app, this is what terminal shows:

Here is a screenshot of my terminal

And whatever I tried to log to terminal using "console.log" doesn't show up there

I don't know where console.log has its output directed to but obviously not my terminal...

Upvotes: 15

Views: 24024

Answers (1)

Jin
Jin

Reputation: 13463

React.js applications run in your browser, not server. If you're using Chrome, use CTRL+SHIFT+J to launch the browser console to see the logs.

The logs will only show in your terminal if you use console.log in your Node.js server-side code.

Upvotes: 28

Related Questions