Create-react-app: Optional chaining now in stage 2

Created on 19 Jun 2019  路  4Comments  路  Source: facebook/create-react-app

This has been discussed in the past and I know that CRA consciously tries to only support stable features.

However the lack of optional chaining and null coalescing have long been one of the major pain points of JavaScript and the proposal recently hit stage 2. Would adding it to CRA be worth some consideration?

proposal

All 4 comments

I would also love to get this in. @iansu and @ianschmitz, any objections to a PR for this one? It'll be tremendously powerful.

@andrewpeterprifer, this is a great macro that does something similar - https://www.npmjs.com/package/idx.macro

We generally don't support stage 2 proposals as they still might change. We support some stage 3 proposals on a case by case basis. I personally love optional chaining but because it's still only stage 2 I don't think we should include it. I would be happy to add it once it reaches stage 3.

Agreed with @iansu. There's been a few notable examples of proposals changing quite drastically during the early stages. We should consider once it progresses further (I can't wait for this feature either!).

Agreed, let's close this off for now and keep a very close eye on it.

@andrewpeterprifer, I think it'll be a very easy sell once it gets to stage 3.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fson picture fson  路  3Comments

stopachka picture stopachka  路  3Comments

barcher picture barcher  路  3Comments

rdamian3 picture rdamian3  路  3Comments

adrice727 picture adrice727  路  3Comments