ReactJS/JSX support in Netbeans IDE

前端 未结 3 488
暖寄归人
暖寄归人 2021-01-11 10:49

I\'ve just downloaded Netbeans 8.1 for PHP. Based on https://netbeans.org/bugzilla/show_bug.cgi?id=250288 , it appears that there is no native ReactJS/JSX support. Is anyon

3条回答
  •  抹茶落季
    2021-01-11 11:37

    Well, i'm a Netbeans user too, but because of needs like this, i've switched myself from Netbeans to Sublime (first) and now to Atom for Frontend development and honestly, the workflow is great. I use ReactJS, AngularJS and VueJS, and for all of this Atom fits my needs.

    Atom uses packages (like plugins) to support all of this, here's what i use for React:

    • Atom (https://atom.io/)
    • React Package (https://atom.io/packages/react)

    The package adds:

    • Syntax highlighting
    • Snippets
    • Automatic indentation and folding
    • JSX Reformatting
    • HTML to JSX conversion
    • Autocomplete

    Something important to remember is that sometimes Atom uses the wrong syntax highlight for some reason, so, in JSX files just click in the bottom right corner (next to the encoding) and you can select your filetype there (for ReactJS, should be Javascript(JSX)) and everything should be fine :)

    I invite you to try it, its a great experience and for backend development (in my case, PHP) Netbeans is way better, from a lot of benefits that in frontend you might not need (the most to me is think is "Go to declaration", which in frontend i don't have/need).

    If you want to know what other packages i use that might help you in frontend development just let me know and i'll update this post :)

    Good luck!

提交回复
热议问题