Release of React Email 2.0 / Habr

Release of React Email 2.0 / Habr

On January 19, 2024, the major version of the open email project (a collection of components for creating emails using React and TypeScript) React Email 2.0 was released. The source code of the project is available on GitHub under the MIT License.

The developers of the project explained that in React Email 2.0 the preview experience has been rethought, changes have been made to the code to significantly improve performance, new components have been added (Code Block, Inline Code, ), Vercel deployment support has appeared, as well as improved support for monorepositories.

The React Email project team has published instructions for upgrading to version 2.0.

Major changes and additions in the React Email 2.0 project:

  • updated components and main blocks;

  • static files for the preview server are now stored in the ./emails/static folder or in the specified email directory;

  • improved user interface and updated icons;

  • added the ability to see how your email will look on mobile devices;

  • added support for subfolders, which allows the previewer to ignore some of them if they have a _ prefix (for example: _comComponents);

  • the startup time of the local React Email 2.0 server with a new installation is about 7 seconds (for React Email 1.10.1 this parameter is 40 seconds);

  • after the initial setup is complete, the download time is about 1 second (depends on the server configuration);

  • improved filtering of the display of emails in the sidebar, which only shows them if they have default export settings somewhere inside. This is a kind of heuristic and it can still be improved.

Related posts