How to use console.log for React

I’m currently in Front End Development Libraries > React section. I would like to know how I can use console.log so I can see what my code is doing and I can do debugging.

Using console.log in React is similar to using it in any other JavaScript environment. You can use console.log directly in your React component functions or lifecycle methods