helloadhavan/github_issues huggingface dataset:
Repository: nodejs/node
Pull request: test: deflake test-inspector-strip-types

Use the `NodeRuntime.waitingForDebugger` event.

Refs: https://github.com/nodejs/node/pull/51560

<!--
Before submitting a pull request, please read:

- the CONTRIBUTING guide at https://github.com/nodejs/node/blob/HEAD/CONTRIBUTING.md
- the commit message formatting guidelines at
  https://github.com/nodejs/node/blob/HEAD/doc/contributing/pull-requests.md#commit-message-guidelines

For code changes:
1. Include tests for any bug fixes or new features.
2. Update documentation if relevant.
3. Ensure that `make -j4 test` (UNIX), or `vcbuild test` (Windows) passes.

If you believe this PR should be highlighted in the Node.js CHANGELOG
please add the `notable-change` label.

Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.
-->


Changed files:
filename: test/parallel/test-inspector-strip-types.js
patch: @@ -18,13 +18,14 @@ async function runTest() {
 
   const session = await child.connectInspectorSession();
 
-  const commands = [
+  await session.send({ method: 'NodeRuntime.enable' });
+  await session.waitForNotification('NodeRuntime.waitingForDebugger');
+  await session.send([
     { 'method': 'Debugger.enable' },
     { 'method': 'Runtime.enable' },
     { 'method': 'Runtime.runIfWaitingForDebugger' },
-  ];
-
-  await session.send(commands);
+  ]);
+  await session.send({ method: 'NodeRuntime.disable' });
 
   const scriptParsed = await session.waitForNotification((notification) => {
     if (notification.method !== 'Debugger.scriptParsed') return false;
Repository: vercel/next.js
Pull request: Turbopack Build: Optimize instrumentation hook generation

### What?

- Add `compiled in` for middleware and instrumentation in Turbopack dev.
- Fixed a bug where instrumentation.js was being compiled like a page file, local testing moves bootup from 2.5s to 700ms when you have a instrumentation file.

### How?
- Added early returns in `hot-reloader-turbopack.ts` for middleware and instrumentation paths when there's no route definition, those cases are handled separately already.
- Added build status indicators in `turbopack-utils.ts` for middleware and instrumentation using `startBuilding` and `finishBuilding` hooks
- Added proper naming for Node.js and Edge instrumentation in the build status

Closes PACK-4278

Changed files:
filename: packages/next/src/server/dev/hot-reloader-turbopack.ts
patch: @@ -948,6 +948,15 @@ export async function createHotReloaderTurbopack(
       isApp,
       url: requestUrl,
     }) {
+      // When there is no route definition this is an internal file not a route the user added.
+      // Middleware and instrumentation are handled in turbpack-utils.ts handleEntrypoints instead.
+      if (!definition) {
+        if (inputPage === '/middleware') return
+        if (inputPage === '/src/middleware') return
+        if (inputPage === '/instrumentation') return
+        if (inputPage === '/src/instrumentation') return
+      }
+
       return hotReloaderSpan
         .traceChild('ensure-page', {
           inputPage,

filename: packages/next/src/server/dev/turbopack-utils.ts
patch: @@ -663,11 +663,21 @@ export async function handleEntrypoints({
       name: string,
       prop: 'nodeJs' | 'edge'
     ) => {
+      const prettyName = {
+        nodeJs: 'Node.js',
+        edge: 'Edge',
+      }
+      const finishBuilding = dev.hooks.startBuilding(
+        `instrumentation ${prettyName[prop]}`,
+        undefined,
+        true
+      )
       const key = getEntryKey('root', 'server', name)
 
       const writtenEndpoint = await instrumentation[prop].writeToDisk()
       dev.hooks.handleWrittenEndpoint(key, writtenEndpoint, false)
       processIssues(currentEntryIssues, key, writtenEndpoint, false, logErrors)
+      finishBuilding()
     }
     await processInstrumentation('instrumentation.nodeJs', 'nodeJs')
     await processInstrumentation('instrumentation.edge', 'edge')
@@ -700,6 +710,11 @@ export async function handleEntrypoints({
     const endpoint = middleware.endpoint
 
     async function processMiddleware() {
+      const finishBuilding = dev.hooks.startBuilding(
+        'middleware',
+        undefined,
+        true
+      )
       const writtenEndpoint = await endpoint.writeToDisk()
       dev.hooks.handleWrittenEndpoint(key, writtenEndpoint, false)
       processIssues(currentEntryIssues, key, writtenEndpoint, false, logErrors)
@@ -714,6 +729,7 @@ export async function handleEntrypoints({
           matchers: middlewareConfig.matchers,
         }
       }
+      finishBuilding()
     }
     await processMiddleware()
Repository: ggml-org/llama.cpp
Pull request: vocab : BailingMoE : change possessive quantifiers to greedy

The possessive quantifiers are causing weird issues, and atomic grouping does not seem to be supported, so revert to greedy.

See following reports:
- https://github.com/ggml-org/llama.cpp/pull/12634#issuecomment-2766990628
- https://github.com/ggml-org/llama.cpp/pull/12634#issuecomment-2767094024
- https://huggingface.co/mradermacher/Ling-lite-GGUF/discussions/1

@bartowski1182 @nicoboss

Changed files:
filename: src/llama-vocab.cpp
patch: @@ -411,7 +411,8 @@ struct llm_tokenizer_bpe : llm_tokenizer {
                 regex_exprs = {
                     // original regex from tokenizer.json
                     // "'(?i:[sdmt]|ll|ve|re)|[^\\r\\n\\p{L}\\p{N}]?+\\p{L}+|\\p{N}| ?[^\\s\\p{L}\\p{N}]++[\\r\\n]*|\\s*[\\r\\n]|\\s+(?!\\S)|\\s+"
-                    "'(?:[sSdDmMtT]|[lL][lL]|[vV][eE]|[rR][eE])|[^\\r\\n\\p{L}\\p{N}]?+\\p{L}+|\\p{N}| ?[^\\s\\p{L}\\p{N}]++[\\r\\n]*|\\s*[\\r\\n]|\\s+(?!\\S)|\\s+",
+                    // FIXME? Changed possessive quantifiers (?+ and ++) to greedy to avoid errors and imatrix hanging (tried atomic grouping but it's not supported?)
+                    "'(?:[sSdDmMtT]|[lL][lL]|[vV][eE]|[rR][eE])|[^\\r\\n\\p{L}\\p{N}]?\\p{L}+|\\p{N}| ?[^\\s\\p{L}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]|\\s+(?!\\S)|\\s+",
                 };
                 break;
             default:
Repository: electron/electron
Pull request: perf: don't build unused vectors in HidChooserContext

#### Description of Change

HidChooserContext's `OnHidManagerConnectionError()` and `DeviceRemoved()` methods both build temporary `std::vector<url::Origin>` objects that are unused. This PR removes them.

The code seems to have been there since the initial commit (6aece4a8, Sep 2021) , so possibly this code was copied from somewhere else? (ETA: answered by @codebytere in comments)

#### Checklist

- [x] PR description included and stakeholders cc'd
- [x] `npm test` passes
- [x] [PR release notes](https://github.com/electron/clerk/blob/main/README.md) describe the change in a way relevant to app developers, and are [capitalized, punctuated, and past tense](https://github.com/electron/clerk/blob/main/README.md#examples).

#### Release Notes

Notes: none.

Changed files:
filename: shell/browser/hid/hid_chooser_context.cc
patch: @@ -273,13 +273,8 @@ void HidChooserContext::DeviceRemoved(device::mojom::HidDeviceInfoPtr device) {
   if (CanStorePersistentEntry(*device))
     return;
 
-  std::vector<url::Origin> revoked_origins;
-  for (auto& map_entry : ephemeral_devices_) {
-    if (map_entry.second.erase(device->guid) > 0)
-      revoked_origins.push_back(map_entry.first);
-  }
-  if (revoked_origins.empty())
-    return;
+  for (auto& [origin, guids] : ephemeral_devices_)
+    guids.erase(device->guid);
 }
 
 void HidChooserContext::DeviceChanged(device::mojom::HidDeviceInfoPtr device) {
@@ -338,11 +333,6 @@ void HidChooserContext::OnHidManagerConnectionError() {
   hid_manager_.reset();
   client_receiver_.reset();
   devices_.clear();
-
-  std::vector<url::Origin> revoked_origins;
-  revoked_origins.reserve(ephemeral_devices_.size());
-  for (const auto& map_entry : ephemeral_devices_)
-    revoked_origins.push_back(map_entry.first);
   ephemeral_devices_.clear();
 
   // Notify all device observers.
Repository: vercel/next.js
Pull request: [dev-overlay] disable font ligatures

### Why?

The font ligatures on code frames like `!==` may negatively affect the users by the readability and inconsistency with their editor.

| Before | After |
|--------|--------|
| ![CleanShot 2025-04-05 at 18 57 57@2x](https://github.com/user-attachments/assets/ac4e4dc0-934a-4422-8006-3cd29726d48c) | ![CleanShot 2025-04-05 at 18 58 20@2x](https://github.com/user-attachments/assets/2fe497d5-fe21-4255-91f5-b3bf917df4ba) |

Changed files:
filename: packages/next/src/client/components/react-dev-overlay/ui/container/errors.stories.tsx
patch: @@ -134,17 +134,17 @@ const runtimeErrors: ReadyRuntimeError[] = [
   {
     id: 4,
     runtime: true,
-    error: new Error('Fourth error message'),
+    error: new Error('typeof window !== undefined'),
     frames: () =>
       Promise.resolve([
         {
           error: true,
-          reason: 'Fourth error message',
+          reason: 'typeof window !== undefined',
           external: false,
           ignored: false,
           sourceStackFrame,
           originalStackFrame,
-          originalCodeFrame: originalCodeFrame('Fourth error message'),
+          originalCodeFrame: originalCodeFrame('typeof window !== undefined'),
         },
       ]),
   },

filename: packages/next/src/client/components/react-dev-overlay/ui/styles/base.tsx
patch: @@ -33,6 +33,7 @@ export function Base({ scale = 1 }: { scale?: DevToolsScale }) {
             'Source Sans Pro', sans-serif;
 
           font-family: var(--font-stack-sans);
+          font-variant-ligatures: none;
 
           /* TODO: Remove replaced ones. */
           --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
Repository: denoland/deno
Pull request: fix(ext/web): correct string tag for MessageEvent

Fixes #24103

Changed files:
filename: ext/web/02_event.js
patch: @@ -1230,7 +1230,7 @@ class MessageEvent extends Event {
   }
 
   // TODO(lucacasonato): remove when this interface is spec aligned
-  [SymbolToStringTag] = "CloseEvent";
+  [SymbolToStringTag] = "MessageEvent";
 }
 
 const MessageEventPrototype = MessageEvent.prototype;

filename: tests/wpt/runner/expectation.json
patch: @@ -12355,7 +12355,7 @@
           "return-value.worker.html": true,
           "event-ports-dedicated.html": true,
           "imagedata-cloned-canvas-in-array.html": false,
-          "message-event.html": false,
+          "message-event.html": true,
           "second-argument-dictionary.html": true,
           "second-argument-null-in-array.html": true,
           "second-argument-null.html": true,

filename: tests/wpt/wpt.ts
patch: @@ -1,4 +1,4 @@
-#!/usr/bin/env -S deno run --unstable --allow-write --allow-read --allow-net --allow-env --allow-run
+#!/usr/bin/env -S deno run --allow-write --allow-read --allow-net --allow-env --allow-run
 // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
 
 // This script is used to run WPT tests for Deno.
Repository: nodejs/node
Pull request: build: fix eslint makefile target

CC @jazelly 

Fixes https://openjs-foundation.slack.com/archives/C019Y2T6STH/p1726321766408959

Changed files:
filename: Makefile
patch: @@ -1388,19 +1388,19 @@ run-lint-js = tools/eslint/node_modules/eslint/bin/eslint.js --cache \
 	--max-warnings=0 --report-unused-disable-directives $(LINT_JS_TARGETS)
 run-lint-js-fix = $(run-lint-js) --fix
 
-tools/eslint/node_modules: tools/eslint/package-lock.json
+tools/eslint/node_modules/eslint/bin/eslint.js: tools/eslint/package-lock.json
 	-cd tools/eslint && $(call available-node,$(run-npm-ci))
 
 .PHONY: lint-js-fix
-lint-js-fix: tools/eslint/node_modules
+lint-js-fix: tools/eslint/node_modules/eslint/bin/eslint.js
 	@$(call available-node,$(run-lint-js-fix))
 
 .PHONY: lint-js
 .PHONY: lint-js-doc
 # Note that on the CI `lint-js-ci` is run instead.
 # Lints the JavaScript code with eslint.
 lint-js-doc: LINT_JS_TARGETS=doc
-lint-js lint-js-doc: tools/eslint/node_modules
+lint-js lint-js-doc: tools/eslint/node_modules/eslint/bin/eslint.js
 	@if [ "$(shell $(node_use_openssl))" != "true" ]; then \
 		echo "Skipping $@ (no crypto)"; \
 	else \
@@ -1417,7 +1417,7 @@ run-lint-js-ci = tools/eslint/node_modules/eslint/bin/eslint.js \
 
 .PHONY: lint-js-ci
 # On the CI the output is emitted in the TAP format.
-lint-js-ci: tools/eslint/node_modules
+lint-js-ci: tools/eslint/node_modules/eslint/bin/eslint.js
 	$(info Running JS linter...)
 	@$(call available-node,$(run-lint-js-ci))
Repository: electron/electron
Pull request: build: update appveyor image to latest version

This PR updates appveyor.yml to the latest baked image, e-129.0.6636.0.

Notes: none

Changed files:
filename: appveyor-woa.yml
patch: @@ -29,7 +29,7 @@
 
 version: 1.0.{build}
 build_cloud: electronhq-16-core
-image: e-129.0.6616.0
+image: e-129.0.6636.0
 environment:
   GIT_CACHE_PATH: C:\Users\appveyor\libcc_cache
   ELECTRON_OUT_DIR: Default

filename: appveyor.yml
patch: @@ -29,7 +29,7 @@
 
 version: 1.0.{build}
 build_cloud: electronhq-16-core
-image: e-129.0.6616.0
+image: e-129.0.6636.0
 environment:
   GIT_CACHE_PATH: C:\Users\appveyor\libcc_cache
   ELECTRON_OUT_DIR: Default
Repository: facebook/react
Pull request: break up import keyword

## Summary

Break up import keyword to avoid being accidentally parsed as dynamic import statement in external code.

Related discussioin issue: https://github.com/facebook/react/issues/21910

Changed files:
filename: packages/react/src/ReactLazy.js
patch: @@ -88,7 +88,8 @@ function lazyInitializer<T>(payload: Payload<T>): T {
     if (__DEV__) {
       if (moduleObject === undefined) {
         console.error(
-          'lazy: Expected the result of a dynamic import() call. ' +
+          'lazy: Expected the result of a dynamic imp' +
+            'ort() call. ' +
             'Instead received: %s\n\nYour code should look like: \n  ' +
             // Break up imports to avoid accidentally parsing them as dependencies.
             'const MyComponent = lazy(() => imp' +
@@ -101,7 +102,8 @@ function lazyInitializer<T>(payload: Payload<T>): T {
     if (__DEV__) {
       if (!('default' in moduleObject)) {
         console.error(
-          'lazy: Expected the result of a dynamic import() call. ' +
+          'lazy: Expected the result of a dynamic imp' +
+            'ort() call. ' +
             'Instead received: %s\n\nYour code should look like: \n  ' +
             // Break up imports to avoid accidentally parsing them as dependencies.
             'const MyComponent = lazy(() => imp' +
Repository: denoland/deno
Pull request: fix(ext/net): make node:http2 work with DENO_FUTURE=1


Changed files:
filename: ext/node/polyfills/http2.ts
patch: @@ -5,6 +5,7 @@
 // deno-lint-ignore-file prefer-primordials
 
 import { core, primordials } from "ext:core/mod.js";
+const { internalRidSymbol } = core;
 import {
   op_http2_client_get_response,
   op_http2_client_get_response_body_chunk,
@@ -405,7 +406,7 @@ export class ClientHttp2Session extends Http2Session {
     const connPromise = new Promise((resolve) => {
       const eventName = url.startsWith("https") ? "secureConnect" : "connect";
       socket.once(eventName, () => {
-        const rid = socket[kHandle][kStreamBaseField].rid;
+        const rid = socket[kHandle][kStreamBaseField][internalRidSymbol];
         nextTick(() => {
           resolve(rid);
         });
Repository: huggingface/transformers
Pull request: Kenlm

# What does this PR do?

kenlm has issue, an PR is not merged yet

https://github.com/kpu/kenlm/pull/464


Let's use kenlm@git+https://github.com/ydshieh/kenlm@master

Changed files:
filename: setup.py
patch: @@ -125,7 +125,7 @@
     "jaxlib>=0.4.1,<=0.4.13",
     "jieba",
     "jinja2>=3.1.0",
-    "kenlm",
+    "kenlm@git+https://github.com/ydshieh/kenlm@78f664fb3dafe1468d868d71faf19534530698d5",
     # Keras pin - this is to make sure Keras 3 doesn't destroy us. Remove or change when we have proper support.
     "keras>2.9,<2.16",
     "keras-nlp>=0.3.1,<0.14.0",  # keras-nlp 0.14 doesn't support keras 2, see pin on keras.
@@ -307,7 +307,7 @@ def run(self):
 extras["integrations"] = extras["hub-kernels"] + extras["optuna"] + extras["ray"] + extras["sigopt"]
 
 extras["serving"] = deps_list("pydantic", "uvicorn", "fastapi", "starlette")
-extras["audio"] = deps_list("librosa", "pyctcdecode", "phonemizer", "kenlm")
+extras["audio"] = deps_list("librosa", "pyctcdecode", "phonemizer", "kenlm@git+https://github.com/ydshieh/kenlm@78f664fb3dafe1468d868d71faf19534530698d5")
 # `pip install ".[speech]"` is deprecated and `pip install ".[torch-speech]"` should be used instead
 extras["speech"] = deps_list("torchaudio") + extras["audio"]
 extras["torch-speech"] = deps_list("torchaudio") + extras["audio"]

filename: src/transformers/dependency_versions_table.py
patch: @@ -32,7 +32,7 @@
     "jaxlib": "jaxlib>=0.4.1,<=0.4.13",
     "jieba": "jieba",
     "jinja2": "jinja2>=3.1.0",
-    "kenlm": "kenlm",
+    "kenlm@git+https://github.com/ydshieh/kenlm@78f664fb3dafe1468d868d71faf19534530698d5": "kenlm@git+https://github.com/ydshieh/kenlm@78f664fb3dafe1468d868d71faf19534530698d5",
     "keras": "keras>2.9,<2.16",
     "keras-nlp": "keras-nlp>=0.3.1,<0.14.0",
     "kernels": "kernels>=0.3.2,<0.4",
Repository: ggml-org/llama.cpp
Pull request: Vulkan: Fix mmq int dot float cache size

I don't know how I (and everyone else) missed this, considering it means models are completely incoherent when using the new int dot shaders, but here's the fix. The cache buffer for the quant dm values was too small and overflowed, leading to NaN results.

Changed files:
filename: ggml/src/ggml-vulkan/vulkan-shaders/mul_mmq.comp
patch: @@ -234,9 +234,9 @@ void main() {
 #endif
 
 #if QUANT_AUXF == 1
-    FLOAT_TYPE cache_a_dm[TM];
+    FLOAT_TYPE cache_a_dm[WMITER * TM];
 #else
-    FLOAT_TYPE_VEC2 cache_a_dm[TM];
+    FLOAT_TYPE_VEC2 cache_a_dm[WMITER * TM];
 #endif
 
     FLOAT_TYPE_VEC2 cache_b_ds[TN];
@@ -247,7 +247,6 @@ void main() {
             const uint iqs = loadr_a;
             const uint buf_ib = loadc_a + l;
 
-            // Should ds be gated to a single thread?
             if (iqs == 0) {
 #if QUANT_AUXF == 1
                 buf_a_dm[buf_ib] = get_d(ib);
@@ -276,7 +275,6 @@ void main() {
 
             const uint buf_ib = loadc_b + l;
 
-            // Should ds be gated to a single thread?
             if (iqs == 0) {
                 buf_b_ds[buf_ib] = FLOAT_TYPE_VEC2(data_b[ib].ds);
             }

filename: ggml/src/ggml-vulkan/vulkan-shaders/mul_mmq_funcs.comp
patch: @@ -17,7 +17,7 @@ i32vec2 repack(uint ib, uint iqs) {
 }
 
 ACC_TYPE mul_q8_1(int32_t q_sum, float da, vec2 dsb) {
-    return ACC_TYPE(da * (float(q_sum) * dsb.x - 8.0 * dsb.y));
+    return ACC_TYPE(da * (float(q_sum) * dsb.x - 8.0f * dsb.y));
 }
 #endif
 
@@ -51,7 +51,7 @@ i32vec2 repack(uint ib, uint iqs) {
 }
 
 ACC_TYPE mul_q8_1(int32_t q_sum, float da, vec2 dsb) {
-    return ACC_TYPE(da * (float(q_sum) * dsb.x - 16.0 * dsb.y));
+    return ACC_TYPE(da * (float(q_sum) * dsb.x - 16.0f * dsb.y));
 }
 #endif
Repository: nodejs/node
Pull request: src: add unistd.h import if node posix credentials is defined

Fixes https://github.com/nodejs/node/issues/54519


Changed files:
filename: src/compile_cache.cc
patch: @@ -8,6 +8,10 @@
 #include "path.h"
 #include "zlib.h"
 
+#ifdef NODE_IMPLEMENTS_POSIX_CREDENTIALS
+#include <unistd.h>  // getuid
+#endif
+
 namespace node {
 std::string Uint32ToHex(uint32_t crc) {
   std::string str;
Repository: electron/electron
Pull request: build: fixup ffmpeg release on x64 macOS

#### Description of Change

<!--
Thank you for your Pull Request. Please provide a description above and review
the requirements below.

Contributors guide: https://github.com/electron/electron/blob/main/CONTRIBUTING.md
-->
- Fixes #43076

Correctly generated ffmpeg for macOS x64 can been seen here:
https://github.com/electron/electron/actions/runs/10163398663?pr=43093
in the [generated_artifacts_darwin_x64](https://github.com/electron/electron/actions/runs/10163398663/artifacts/1755804915)

#### Checklist
<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->

- [x] PR description included and stakeholders cc'd
- [x] `npm test` passes
- [x] [PR release notes](https://github.com/electron/clerk/blob/main/README.md) describe the change in a way relevant to app developers, and are [capitalized, punctuated, and past tense](https://github.com/electron/clerk/blob/main/README.md#examples).

#### Release Notes

Notes: <!-- Please add a one-line description for app developers to read in the release notes, or 'none' if no notes relevant to app developers. Examples and help on special cases: https://github.com/electron/clerk/blob/main/README.md#examples -->Fixed ffmpeg release on x64 macOS


Changed files:
filename: .github/actions/build-electron/action.yml
patch: @@ -36,7 +36,7 @@ runs:
       shell: bash
       if: ${{ inputs.target-arch == 'x64' && inputs.target-platform == 'macos' }}
       run: |
-        GN_APPENDED_ARGS="$GN_EXTRA_ARGS v8_snapshot_toolchain=\"//build/toolchain/mac:clang_x64\""
+        GN_APPENDED_ARGS="$GN_EXTRA_ARGS target_cpu=\"x64\" v8_snapshot_toolchain=\"//build/toolchain/mac:clang_x64\""
         echo "GN_EXTRA_ARGS=$GN_APPENDED_ARGS" >> $GITHUB_ENV
     - name: Build Electron ${{ inputs.step-suffix }}
       shell: bash
Repository: facebook/react
Pull request: [package:react-dom] updateREADME's Class Component to Function Component

## Summary
The summary is the same as the title.

## Why
In these day many developer facing this content while opening `package.json` with modern editor like this.

<img width="652" alt="Screen Shot 2021-07-08 at 22 37 32" src="https://user-images.githubusercontent.com/5501268/124931983-a9b88080-e03d-11eb-8761-4c1889bc2f00.png">

Ride on the traction [New React Docs #3308](https://github.com/reactjs/reactjs.org/issues/3308) 🚀

Changed files:
filename: packages/react-dom/README.md
patch: @@ -16,10 +16,8 @@ npm install react react-dom
 var React = require('react');
 var ReactDOM = require('react-dom');
 
-class MyComponent extends React.Component {
-  render() {
-    return <div>Hello World</div>;
-  }
+function MyComponent() {
+  return <div>Hello World</div>;
 }
 
 ReactDOM.render(<MyComponent />, node);
@@ -31,10 +29,8 @@ ReactDOM.render(<MyComponent />, node);
 var React = require('react');
 var ReactDOMServer = require('react-dom/server');
 
-class MyComponent extends React.Component {
-  render() {
-    return <div>Hello World</div>;
-  }
+function MyComponent() {
+  return <div>Hello World</div>;
 }
 
 ReactDOMServer.renderToString(<MyComponent />);