Jveloper

2019. 08. 01 이머시브 수업 10주차 - 4일 (react native debugging & "fetch" vs "axios"?) 본문

Project/HopeQuery

2019. 08. 01 이머시브 수업 10주차 - 4일 (react native debugging & "fetch" vs "axios"?)

Jveloper 2019. 8. 2. 10:53

react native에서 debugging 하는 방법

 

react native 에서 command + i 누르면 웹페이지 개발자도구 레이아웃 보듯이 레이아웃을 확인할 수 있다

 

ios : command + D --> Debug JS Remotely --> console 찍히는지 확인

android : command + M --> Debug JS Remotely --> console 찍히는지 확인 

 

똑같은 주소로 routing하지만 디버깅은 한개씩밖에 못돌리는것같다

 

참고링크 : https://stackoverflow.com/questions/29289304/how-do-you-debug-react-native

 


react native에서 "fetch"   vs    "axios" ?

react native는 update 가 자주 일어나기 때문에 install을 해야하는 axios보다는 fetch를 추천한다
react를 쓰는것이라면 axios를 추천한다

Comments