How do I add a configuration without exposing the configuration of the Create React App?
This can be done by installing the @craco/ Craco package. Customize esLint, Babel, postcs, etc by adding a craco.config.js file in the root directory. For example, add a decorator configuration:
module.exports = {
babel: {
plugins: [["@babel/plugin-proposal-decorators", { legacy: true}}}]]Copy the code
Also, the vscode I use doesn’t recognize decorator syntax. You just need to change the configuration. Search for “experimentalDecorators” under the configuration check it and restart vscode.
References:www.npmjs.com/package/@cr…