Console.table instead of Console.log for React

PHOTO EMBED

Tue Jun 29 2021 10:26:39 GMT+0000 (UTC)

Saved by @hisam #console #debugging #react.js

//logs a table of users who use Yuan currency, displays all info
const onlyYuanUsers = users.filter( user => user.currency === "Yuan Renminbi")
console.table(onlyYuanUsers)

//just display iddx, id, and currency
console.table(onlyYuanUsers, ['id', 'currency'])
content_copyCOPY

https://dev.to/hymanaharon/why-i-will-no-longer-be-using-console-log-to-check-react-state-updates-29el