How to do logging in React Native?

前端 未结 30 3454
不思量自难忘°
不思量自难忘° 2020-11-30 17:08

How can I log a variable in React Native, like using console.log when developing for web?

30条回答
  •  眼角桃花
    2020-11-30 17:45

    console.log() is the easy way to debug your code but it need to be use with arrow function or bind() while displaying any state. You may find the link useful.

提交回复
热议问题