Subsequent.js 14 is now formally accessible, with addition of Server Actions and Partial Prerendering options


At this time on the Subsequent.js Conf, Vercel introduced the discharge of the newest model of the React framework for net improvement, Subsequent.js

In line with Vercel, Subsequent.js 14 provides vital efficiency boosts, together with 53% sooner native server startup and 94% sooner code updates utilizing Quick Refresh. 

Moreover, 5,000 “subsequent dev” integration checks have now handed with Turbopack, which is the underlying Rust engine for Subsequent.js. Vercel says that builders ought to expertise sooner and extra dependable efficiency utilizing “subsequent dev –turbo” now. The corporate additionally says that after 100% of checks go with Turbopack, Turbopack might be moved to secure (at the moment 90% go). 

Additionally on this launch, the Subsequent.js group has improved the developer expertise of authoring knowledge mutations with the secure launch of Server Actions, which lets you outline asynchronous server capabilities. You need to use Server Actions to revalidate cached knowledge, redirect to completely different routes, set and skim cookies, and extra. 

Subsequent.js 14 additionally features a preview for Partial Prerending, which optimizes the compiler to deal with dynamic content material. It additionally doesn’t require you to be taught any new APIs to make use of. “We’ve heard your suggestions. There’s at the moment too many runtimes, configuration choices, and rendering strategies to have to contemplate. You need the velocity and reliability of static, whereas additionally supporting absolutely dynamic, customized responses. Having nice efficiency globally and personalization shouldn’t come at the price of complexity,” Lee Robinson, VP of developer expertise at Vercel, and Tim Neutkens, engineering supervisor for Subsequent.js, wrote in a weblog put up

Shifting on, Vercel additionally decoupled blocking and non-blocking metadata and is deprecating a number of metadata choices, together with viewport, colorScheme, and themeColor. New metadata choices have been added to switch these. 

Along with releasing Subsequent.js 14, Vercel additionally introduced the launch of a brand new course on Subsequent.js Be taught that covers the Subsequent.js App Router, Tailwind CSS, optimizing fonts and pictures, creating layouts and pages, and extra.