From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.help Subject: Re: What to use: native js-mode or rjsx-mode? Date: Sat, 30 Jan 2021 14:34:53 +0200 Message-ID: References: <86czxmn10n.fsf@dod.no> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14266"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 To: Steinar Bang , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 30 13:36:16 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l5pU8-0003aw-JF for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 30 Jan 2021 13:36:16 +0100 Original-Received: from localhost ([::1]:59944 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l5pU7-0000FN-Le for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 30 Jan 2021 07:36:15 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38366) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5pSy-0000EK-3g for help-gnu-emacs@gnu.org; Sat, 30 Jan 2021 07:35:05 -0500 Original-Received: from mail-ej1-x632.google.com ([2a00:1450:4864:20::632]:35387) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l5pSr-00053H-RW for help-gnu-emacs@gnu.org; Sat, 30 Jan 2021 07:35:03 -0500 Original-Received: by mail-ej1-x632.google.com with SMTP id ox12so17044061ejb.2 for ; Sat, 30 Jan 2021 04:34:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=fWkZE6MoevVlP3vRjaIfVlxFFFFphLVzUP27hnGPa74=; b=I3UsLdTjGa/S9s9jL3VDv477WD/2s6HBV7M9CUJCra47BKnTiibCyuroqIhXwDc6Os nCpgxmJ6L1ZeDlMx4GSNA6YANiUzCUHgbL/PEGEX8+kHuoIDdsjXaQ3MuXL17yzogjcL ZjAegtZyuUYwBTKh+pP/N8qGMcxbrzOSyIoBgDe8k3Z0kg5hekLuX6tss2XtWxLLRSfj q0hfpmQ4Wj8UznQ0hW0U9gDzToXWJ5A+rZqF4dfDjo/AQ7NevbYtxD3eUi3fSTr7MKMM ARnHMRP8kc2OXuSRWediVAT5GBgOFlGQiwwUrmxjPzWT51xKag0dd3CGa8aZNo8J/KI5 230Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=fWkZE6MoevVlP3vRjaIfVlxFFFFphLVzUP27hnGPa74=; b=TTnGEvt+vGFS1/CHjGdGhydzRHroNR1IVEFxX0saA+e3anZHjnz25+tqHLPlEwmpra nSgnPd8AB4bJz7jtNUYknxU3cdyn0OpQhmRbRcSx+vksjErmOL85LdMunb6ItYZ+98mD Hdeu2pZBLi3TogEH8sUwx2PGOOJtd496oOsniCFM1TD/3VgwPjRtc58ZF3w0MDtDfCFo aMr1dbBDb+czE6PJmOZS7uscNhQnujXCcIO1OMfvUVheLnMJ28JIZOTvqkrv6B5vkUHc rGhkq4BLiLWNVTJ/2wYf486PpCwcel+9kUgdYRVi5dkEzocHKEyDxMigUERe7LOIvvAf ptjQ== X-Gm-Message-State: AOAM530Z2rcshk9+xxdpbwVrdVnu69NFUgGfY9nRbai0S5FNB2ZVsbNx JgBFqYZL1sO7XOXp4OqXThlzfiE1yN0= X-Google-Smtp-Source: ABdhPJyGU7Wy9sNGj+H8FuIx250rXRJfUmpEwVzjpo70NyL75MfFpymSjwVn439c2OPCZx+qKQWKHg== X-Received: by 2002:a17:906:f144:: with SMTP id gw4mr9043486ejb.189.1612010096118; Sat, 30 Jan 2021 04:34:56 -0800 (PST) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id qq11sm5250666ejb.74.2021.01.30.04.34.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 30 Jan 2021 04:34:55 -0800 (PST) In-Reply-To: <86czxmn10n.fsf@dod.no> Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::632; envelope-from=raaahh@gmail.com; helo=mail-ej1-x632.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:127441 Archived-At: 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.