Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Reword intro
  • Loading branch information
gaearon committed Jan 25, 2019
commit f510e11312d6f909ecc00dee28e618c94c46e7a3
2 changes: 1 addition & 1 deletion content/docs/hooks-custom.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ next: hooks-reference.html
prev: hooks-rules.html
---

*Hooks* let you use state and other React features without writing a class.
*Hooks* are a new addition in React 16.8. They let you use state and other React features without writing a class.

Building your own Hooks lets you extract component logic into reusable functions.

Expand Down
2 changes: 1 addition & 1 deletion content/docs/hooks-effect.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ next: hooks-rules.html
prev: hooks-intro.html
---

*Hooks* let you use state and other React features without writing a class.
*Hooks* are a new addition in React 16.8. They let you use state and other React features without writing a class.

The *Effect Hook* lets you perform side effects in function components:

Expand Down
2 changes: 1 addition & 1 deletion content/docs/hooks-faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ permalink: docs/hooks-faq.html
prev: hooks-reference.html
---

*Hooks* let you use state and other React features without writing a class.
*Hooks* are a new addition in React 16.8. They let you use state and other React features without writing a class.

This page answers some of the frequently asked questions about [Hooks](/docs/hooks-overview.html).

Expand Down
2 changes: 1 addition & 1 deletion content/docs/hooks-intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ permalink: docs/hooks-intro.html
next: hooks-overview.html
---

*Hooks* let you use state and other React features without writing a class.
*Hooks* are a new addition in React 16.8. They let you use state and other React features without writing a class.

```js{4,5}
import React, { useState } from 'react';
Expand Down
2 changes: 1 addition & 1 deletion content/docs/hooks-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ next: hooks-state.html
prev: hooks-intro.html
---

*Hooks* let you use state and other React features without writing a class.
*Hooks* are a new addition in React 16.8. They let you use state and other React features without writing a class.

Hooks are [backwards-compatible](/docs/hooks-intro.html#no-breaking-changes). This page provides an overview of Hooks for experienced React users. This is a fast-paced overview. If you get confused, look for a yellow box like this:

Expand Down
2 changes: 1 addition & 1 deletion content/docs/hooks-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ prev: hooks-custom.html
next: hooks-faq.html
---

*Hooks* let you use state and other React features without writing a class.
*Hooks* are a new addition in React 16.8. They let you use state and other React features without writing a class.

This page describes the APIs for the built-in Hooks in React.

Expand Down
2 changes: 1 addition & 1 deletion content/docs/hooks-rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ next: hooks-custom.html
prev: hooks-effect.html
---

*Hooks* let you use state and other React features without writing a class.
*Hooks* are a new addition in React 16.8. They let you use state and other React features without writing a class.

Hooks are JavaScript functions, but you need to follow two rules when using them. We provide a [linter plugin](https://www.npmjs.com/package/eslint-plugin-react-hooks) to enforce these rules automatically:

Expand Down
2 changes: 1 addition & 1 deletion content/docs/hooks-state.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ next: hooks-effect.html
prev: hooks-overview.html
---

*Hooks* let you use state and other React features without writing a class.
*Hooks* are a new addition in React 16.8. They let you use state and other React features without writing a class.

The [previous page](/docs/hooks-intro.html) introduced Hooks with this example:

Expand Down