Debugging JSX using browser / plugins

后端 未结 4 1698
迷失自我
迷失自我 2021-01-01 18:09

Is there a way to debug JSX files?

I am unable to see the .jsx files when I check the resources tab in either safari / chrome. Can we use a debugger ?

4条回答
  •  猫巷女王i
    2021-01-01 18:29

    After you install the Chrome Extension open the devTool (f12) and you can see:

    1. A new react tab - use to inspecting the react elements (like the regular inspect).

    1. In source tab (left panel) a new App list where u can see the JSX files and set break points in side your code.

    NOTE: it might be necessary to restart chrome to get it going

提交回复
热议问题