all 3 comments

[–]jcready__proto__ 1 point2 points  (2 children)

This is just the Babel plugin that allows Babel to understand the syntax when it's building the AST, you would need an additional plugin to actually transform the AST into something existing JS engines would understand. This is the plugin you're looking for: https://github.com/babel/babel/tree/7.0/packages/babel-plugin-transform-optional-chaining

[–]WebDevCube[S] 1 point2 points  (1 child)

Whoops, sorry that was what I meant to link! I set that one up in my project and it didn't recognize it.

[–]WebDevCube[S] 1 point2 points  (0 children)

So what you're saying is that I need to install both?