From f6320f6b9190877faa91b48696cf63afb9bcc92a Mon Sep 17 00:00:00 2001 From: Vadzim Date: Mon, 9 Dec 2019 13:25:49 +0300 Subject: [PATCH] Fix typo in comment: `?.` is right, not `.?` This is just a comment fix. Actual optional chaining operator syntax is `?.`, not `.?`. --- packages/babel-preset-react-app/create.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/babel-preset-react-app/create.js b/packages/babel-preset-react-app/create.js index 6d86d7b9c9f..24b007f69a2 100644 --- a/packages/babel-preset-react-app/create.js +++ b/packages/babel-preset-react-app/create.js @@ -196,7 +196,7 @@ module.exports = function(api, opts, env) { ], // Adds syntax support for import() require('@babel/plugin-syntax-dynamic-import').default, - // Adds syntax support for optional chaining (.?) + // Adds syntax support for optional chaining (?.) require('@babel/plugin-proposal-optional-chaining').default, // Adds syntax support for default value using ?? operator require('@babel/plugin-proposal-nullish-coalescing-operator').default,