惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

爱范儿
爱范儿
腾讯CDC
博客园 - 司徒正美
A
About on SuperTechFans
H
Help Net Security
J
Java Code Geeks
C
Check Point Blog
B
Blog RSS Feed
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
MongoDB | Blog
MongoDB | Blog
U
Unit 42
Hugging Face - Blog
Hugging Face - Blog
Last Week in AI
Last Week in AI
MyScale Blog
MyScale Blog
V
Visual Studio Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
I
InfoQ
H
Hackread – Cybersecurity News, Data Breaches, AI and More
F
Fortinet All Blogs
博客园 - 聂微东
酷 壳 – CoolShell
酷 壳 – CoolShell
GbyAI
GbyAI
博客园 - 【当耐特】
雷峰网
雷峰网

Vercel News

Vercel Open Source Program: Winter 2026 cohort How Notion Workers run untrusted code at scale with Vercel Sandbox How we run Vercel's CDN in front of Discourse From idea to secure checkout in minutes with Stripe Building Slack agents can be easy Scaling redirects to infinity on Vercel Advancing Python typing Gamma builds design-first agents with Vercel How Avalara turns pipe dreams into patent-pending with v0 Keeping community human while scaling with agents How OpenEvidence built a healthcare AI that physicians actually trust Security boundaries in agentic architectures Skills Night: 69,000+ ways agents are getting smarter Video Generation with AI Gateway We Ralph Wiggumed WebStreams to make them 10x faster How Stably ships AI testing agents in hours, not weeks How we built AEO tracking for coding agents Anyone can build agents, but it takes a platform to run them Introducing Geist Pixel The Vercel AI Accelerator is back with $6m in credits Making agent-friendly pages with content negotiation The Vercel OSS Bug Bounty program is now available Introducing the new v0 Run untrusted code with Vercel Sandbox, now generally available How Stripe built a game-changing app in a single flight with v0 How Sensay went from zero to product in six weeks AGENTS.md outperforms skills in our agent evals Agent skills explained: An FAQ Testing if "bash is all you need" AWS databases are now live on the Vercel Marketplace and v0
Next.js 4: React 16 and styled-jsx 2 - Vercel – Vercel
2017-10-09 · via Vercel News

3 min read

We are happy to introduce Next.js 4, which features support for React 16 and introduces a major upgrade for the default styling engine styled-jsx with support for dynamic styles.

Major performance improvements are introduced: SSR with Next.js 4 is 2.6x faster and style initialization is 20% faster. According to CSS-in-JS benchmarks, Next.js styles are now the fastest of any library.

Next.js 4 is the result of the work of 29 contributors, the highest of any release yet! Check out the changes below.

Link to headingReact 16

React 16 introduces numerous improvements, which you can benefit from right away by just bumping your dependencies:

npm i next@latest react@latest react-dom@latest

With Next.js 3.0 we get about 105 requests per second on one of our model pages:

A benchmark of 5000 requests against Next.js 3.0 SSR

A benchmark of 5000 requests against Next.js 3.0 SSR

and 272 requests per second with Next.js 4 and React 16 (a 2.6x improvement!)

A benchmark of 5000 requests against Next.js 4 SSR. 2.6x faster!

A benchmark of 5000 requests against Next.js 4 SSR. 2.6x faster!

This brings React to similar levels of server-rendering performance as those we’ve observed when using Next.js in conjunction with preact.

Link to headingStyled-jsx 2

styled-jsx is a babel plugin to add support for styles inside React components. This effectively gives you the ability to have single file components with scoped and isolated CSS:

export default () => (

<div>

Hello there <span>my friend</span>

<style jsx>{`

/* this style only applies to the span within lexical scope */

span { color: red; }

`}</style>

</div>

)

CSS can be embedded alongside your JSX. It just works!

Until today, there was support for embedding constants inside your styles, helpful for all sorts of configuration that applies to your CSS:

import { COLOR } from './css-config';

export default () => (

<div>

Hello there <span>my friend</span>

<style jsx>{`

/* this style only applies to the span within lexical scope */

span { color: ${COLOR}; }

`}</style>

</div>

)

In this case, COLOR is a constant, which is supported in 1.x

As of styled-jsx 2, shipping with Next.js 4, you can now embed variables and expressions from within the scope, which can come from component props or state.

export default ({ color }) => (

<div>

Hello there <span>my friend</span>

<style jsx>{`

/* this style only applies to the span within lexical scope */

span { color: ${color}; }

`}</style>

</div>

)

In this case, color is a React prop and can change over time!

This has the effect of reducing the need for inline styles in combination with static styles, which can create some confusion when reading component code. It also improves styled-jsx for use cases like animation and theming.

styled-jsx 2 packs significant performance improvements. When used with static styles, it’s the fastest way to use styles in your application. When using dynamic styles, it’s among the fastest (and only getting faster in the future!)

Link to headingFull Release Notes

Minor changes

  • Treat navigation to empty hash as hash navigate: #2971

  • Pass conf to export function: #2962

  • Keep some buffered pages, that won't be disposed. Fix #1939#2592

  • Add webpack-bundle-size-analyzer example: #3013

  • Add doc to onDemandEntries configuration: #3030

  • Update with-firebase-hosting example: #3032

  • Allow use of filenames in exportPathMap: #2973

  • Configurable opts for babel-preset-env + babel-plugin-transform-runtime: #2991

Patches

  • README improvement: #3038

  • Update the hash-statics example to support sub-dirs: #3015

  • Example: Improve ReasonML example: #3021

  • Added Fastify example: #3034

  • More elegant application of antd: #2840

  • Upgrade dependencies: #2998

  • Corrected dependencies for preact and inferno: #2583

  • Fix coding style of snippets: #2806

  • Tie page visibility api to on demand pinger: #2818

  • Only use strict dependencies: #2929

  • Fix error messages in server/export.js: #2933

  • Expose buildId to custom webpack configs: #3001

  • Added PropType: #3003

  • Add "asPath" information to url objects: #2988

Link to headingConclusion

With nearly 18,000 stars in the 10 months since the initial Next.js release, we are humbled by the amazing growth and reception the Next.js project has seen. Next.js is now being used by companies of all size: from Fortune 50 enterprises, to design studios and startups and individuals all over the world.

Moving forward, we plan on continuing to deliver frequent releases that improve your development experience and ability to extend Next.js to fit an ever-growing range of applications.

Come Join Us!