Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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...

like image 885
user3718395 Avatar asked Jan 24 '26 14:01

user3718395


1 Answers

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.

like image 186
Jin Avatar answered Jan 26 '26 04:01

Jin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!