* What to use: native js-mode or rjsx-mode?
@ 2021-01-30 10:59 Steinar Bang
2021-01-30 12:34 ` Dmitry Gutov
0 siblings, 1 reply; 2+ messages in thread
From: Steinar Bang @ 2021-01-30 10:59 UTC (permalink / raw)
To: help-gnu-emacs
I have been using rjsx-mode for react.js with ES6 JSX syntax, since
2018, and have stayed with that since.
I have read what has been written about rjsx-mode, js-mode and js2-mode,
and have been thoroughly confused about where there is development going
on, what state the different modes have been in and what to use going
forward.
I'm still on emacs 26 and 27 (I'm a slow adopter, unless there is
something in a new emacs release I very much want).
If I want something that supports JSX syntax, should I move to the
native js-mode? Or am I better off staying with rjsx-mode?
And if moving to native js-mode: when should I do this? From emacs 27?
From emacs 28?
Thanks!
- Steinar
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: What to use: native js-mode or rjsx-mode?
2021-01-30 10:59 What to use: native js-mode or rjsx-mode? Steinar Bang
@ 2021-01-30 12:34 ` Dmitry Gutov
0 siblings, 0 replies; 2+ messages in thread
From: Dmitry Gutov @ 2021-01-30 12:34 UTC (permalink / raw)
To: Steinar Bang, help-gnu-emacs
Hi!
On 30.01.2021 12:59, Steinar Bang wrote:
> I have been using rjsx-mode for react.js with ES6 JSX syntax, since
> 2018, and have stayed with that since.
>
> I have read what has been written about rjsx-mode, js-mode and js2-mode,
> and have been thoroughly confused about where there is development going
> on, what state the different modes have been in and what to use going
> forward.
>
> I'm still on emacs 26 and 27 (I'm a slow adopter, unless there is
> something in a new emacs release I very much want).
>
> If I want something that supports JSX syntax, should I move to the
> native js-mode? Or am I better off staying with rjsx-mode?
>
> And if moving to native js-mode: when should I do this? From emacs 27?
> From emacs 28?
There's nothing new in it in Emacs 28, IIRC.
If the version of js-mode in 27 works well in your projects, that is the
one "officially recommended", otherwise staying with rjsx-mode seems
prudent.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-01-30 12:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-30 10:59 What to use: native js-mode or rjsx-mode? Steinar Bang
2021-01-30 12:34 ` Dmitry Gutov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).