What’s new in Create React App 3
Blog post from LogRocket
Create React App (CRA) 3, released in April 2019, introduced several enhancements to facilitate the development of React applications, including linting rules for hooks and TypeScript projects. This version incorporates Jest 24 to improve testing with features like built-in TypeScript support and enhanced error reporting, and it enforces hooks rules via the ESLint plugin to maintain code consistency. CRA 3 also supports TypeScript linting and allows for custom browserslist configurations for tailored build outputs, ensuring compatibility with specified browser versions. The update simplifies module imports by deprecating the NODE_PATH variable in favor of using baseUrl in configuration files. These improvements, contributed by almost 50 developers, make upgrading to CRA 3 straightforward for non-ejected projects, offering a more streamlined and efficient development process.