Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/content/learn/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
4 changes: 2 additions & 2 deletions src/content/learn/your-first-component.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ With `function Profile() { }` you define a JavaScript function with the name `Pr

<Pitfall>

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!

</Pitfall>

Expand Down Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/content/reference/react/Component.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ We recommend defining components as functions instead of classes. [See how to mi

<Intro>

`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 {
Expand Down
2 changes: 1 addition & 1 deletion src/content/reference/react/PureComponent.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ We recommend defining components as functions instead of classes. [See how to mi

<Intro>

`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 {
Expand Down
Loading