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() { 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. 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 { 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 {