Skip to content

Commit

Permalink
Fix typo in comment: ?. is right, not .? (#8124)
Browse files Browse the repository at this point in the history
This is just a comment fix.

Actual optional chaining operator syntax is `?.`, not `.?`.
  • Loading branch information
vadzim authored and ianschmitz committed Dec 9, 2019
1 parent 53a48c4 commit b8ff97b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/babel-preset-react-app/create.js
Expand Up @@ -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,
Expand Down

0 comments on commit b8ff97b

Please sign in to comment.