From 7c3f009e4a24a94f581c78c50569ed748ec11581 Mon Sep 17 00:00:00 2001 From: Dex Date: Fri, 18 Sep 2026 23:46:51 +0200 Subject: [PATCH 1/4] Capitalize Components in index.md --- src/content/learn/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/learn/index.md b/src/content/learn/index.md index ab1d12afb52..16305bd52f9 100644 --- a/src/content/learn/index.md +++ b/src/content/learn/index.md @@ -23,7 +23,7 @@ Welcome to the React documentation! This page will give you an introduction to 8 React apps are made out of *components*. A component is a piece of the UI (user interface) that has its own logic and appearance. A component can be as small as a button, or as large as an entire page. -React components are JavaScript functions that return markup: +React Components are JavaScript functions that return markup: ```js function MyButton() { From 63a769fb6c13f19ab03c31ddfb39d02dfb99394f Mon Sep 17 00:00:00 2001 From: Dex Date: Fri, 18 Sep 2026 23:46:53 +0200 Subject: [PATCH 2/4] Capitalize Components in your-first-component.md --- src/content/learn/your-first-component.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content/learn/your-first-component.md b/src/content/learn/your-first-component.md index 81744322e60..1cceb4d6fd2 100644 --- a/src/content/learn/your-first-component.md +++ b/src/content/learn/your-first-component.md @@ -88,7 +88,7 @@ With `function Profile() { }` you define a JavaScript function with the name `Pr -React components are regular JavaScript functions, but **their names must start with a capital letter** or they won't work! +React Components are regular JavaScript functions, but **their names must start with a capital letter** or they won't work! @@ -227,7 +227,7 @@ You've just gotten your first taste of React! Let's recap some key points. * React lets you create components, **reusable UI elements for your app.** * In a React app, every piece of UI is a component. -* React components are regular JavaScript functions except: +* React Components are regular JavaScript functions except: 1. Their names always begin with a capital letter. 2. They return JSX markup. From cc99b39b382ffd7c3320fd7113119d2adced2cd1 Mon Sep 17 00:00:00 2001 From: Dex Date: Fri, 18 Sep 2026 23:46:54 +0200 Subject: [PATCH 3/4] Capitalize Components in Component.md --- src/content/reference/react/Component.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/reference/react/Component.md b/src/content/reference/react/Component.md index f6c8cc4bf32..d28f74fde0f 100644 --- a/src/content/reference/react/Component.md +++ b/src/content/reference/react/Component.md @@ -10,7 +10,7 @@ We recommend defining components as functions instead of classes. [See how to mi -`Component` is the base class for the React components defined as [JavaScript classes.](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes) Class components are still supported by React, but we don't recommend using them in new code. +`Component` is the base class for the React components defined as [JavaScript classes.](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes) Class Components are still supported by React, but we don't recommend using them in new code. ```js class Greeting extends Component { From 0afecac0e0b1f021d2ec6aa631a5dfe82e5cb2c2 Mon Sep 17 00:00:00 2001 From: Dex Date: Fri, 18 Sep 2026 23:46:56 +0200 Subject: [PATCH 4/4] Capitalize Components in PureComponent.md --- src/content/reference/react/PureComponent.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/reference/react/PureComponent.md b/src/content/reference/react/PureComponent.md index 3e2d074e10d..3e8b556a8fa 100644 --- a/src/content/reference/react/PureComponent.md +++ b/src/content/reference/react/PureComponent.md @@ -10,7 +10,7 @@ We recommend defining components as functions instead of classes. [See how to mi -`PureComponent` is similar to [`Component`](/reference/react/Component) but it skips re-renders for same props and state. Class components are still supported by React, but we don't recommend using them in new code. +`PureComponent` is similar to [`Component`](/reference/react/Component) but it skips re-renders for same props and state. Class Components are still supported by React, but we don't recommend using them in new code. ```js class Greeting extends PureComponent {