不,Windows 开始菜单不使用 React。
No, Windows Start does not use React

原始链接: https://pathar.tl/blog/no-windows-start-does-not-use-react/

最近的报道引发了对Windows 11开始菜单底层技术的困惑。微软宣布重新关注其原生WinUI框架以提高性能,这导致一些人认为整个开始菜单都是用React构建的。这是**不正确的**。 虽然开始菜单底部的*推荐*部分使用了**React Native for Windows**,但它不是一个完整的JavaScript框架或资源密集型的网页视图。相反,它是一个可以直接与Windows API和WinUI 3交互的React Native版本。 作者澄清说这是一个小型、潜在的高性能组件——并且是一个几年前实施的变更——而不是最近由于人工智能而发生的变化,也不是更大系统问题的征兆。微软扩大WinUI使用的举措旨在优化整个操作系统的性能,但最初关于React参与的报道在很大程度上被误解了。

## Windows 启动菜单 & React:澄清 最近在 Hacker News 上的讨论澄清了 Windows 11 启动菜单*确实*使用了 React,但方式并非许多开发者所认为的那样。具体来说,“推荐”部分是使用 **React Native for Windows** 构建的,它直接调用 Windows API (WinUI 3),而不是依赖于完整的 JavaScript 框架或 WebView。 虽然在技术上是 React,但这并不等同于经常受到批评的资源密集型基于 Web 的实现。一些评论员认为标题具有误导性,因为它仍然是 React,而另一些人则指出微软似乎不愿完全致力于为核心操作系统组件进行原生开发。 这场争论强调了 React 作为核心库及其各种渲染器(Web 与原生)之间的区别。最终,这场讨论强调了在回应科技新闻时,细致的理解和批判性思维的重要性,以及对当前 Windows UI 开发状态的普遍不满。
相关文章

原文

Windows is in the news again. This time Microsoft has put out a standard corporate Our commitment to Windows quality post concerning many features/changes to Windows that have been made primarily in Windows 11.

There’s not much to their commitment where I feel like they’re doing some massive pivot. I feel like this mostly PR to appease the loudest of the crowd. However, this post has been making the rounds on sites like Windows Central and as such people are over-reacting (I swear that was unintentional) to this news, and I believe misinformation in Windows Central’s own post is partially to blame.

Microsoft is also vowing to use its native Windows UI framework, WinUI, in more areas of the system, such as the Start menu, which up until now has been built using React. Switching to native WinUI should improve performance, thanks in part to major performance upgrades to WinUI that Microsoft is also promising to deliver this year.

This is where misinformation rears its head again. No, Windows Start isn’t built on React. No part of the start menu actually uses React. I can see where people get confused though, because naming things are hard and often similar names can easily point someone in the wrong direction.

The Windows 11 start menu with "Recommended" section

This is the Windows 11 start menu. See that Recommended section at the bottom of it? That is built with React Native for Windows. No, that is not a full JavaScript framework in your start menu. There’s no web view / browser running gobbling up your resources. It’s React Native for Windows which is a flavor of React Native that directly calls Windows APIs including, you guessed it, WinUI 3.

So that’s it. Windows Start has a very small section (that can be disabled) that’s written in a framework that follows React principles and compiles down to native code. Yes, there’s probably a performance hit. No, it’s probably not that big, and it’s probably even faster than if you were to write it in C#/.NET. Yes, there are way too many UI frameworks, and yes there are some important parts of the OS that need an overhaul, and this is probably superfluous. But this was changed years ago and isn’t the result of AI slop. Can we move on now?

And no, Settings is not using a web framework either.

联系我们 contact @ memedata.com