create react app @babel/plugin-proposal-optional-chaining code example
Example: @babel/plugin-proposal-optional-chaining
npm install --save-dev @babel/plugin-proposal-optional-chaining
// Add it to the plugins array
require("@babel/core").transform("code", {
plugins: ["@babel/plugin-proposal-optional-chaining"]
});