Skip to content

Commit d16f1ee

Browse files
EdiiikEduard Porackýeps1lon
authored
Add next and previous links to Advanced Guides (#540)
Co-authored-by: Eduard Poracký <[email protected]> Co-authored-by: Sebastian Silbermann <[email protected]>
1 parent 6a1e325 commit d16f1ee

18 files changed

+34
-0
lines changed

content/docs/accessibility.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
id: accessibility
33
title: Accessibility
44
permalink: docs/accessibility.html
5+
prev: integrating-with-other-libraries.html
6+
next: code-splitting.html
57
---
68

79
## Why Accessibility? {#why-accessibility}

content/docs/code-splitting.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
id: code-splitting
33
title: Code-Splitting
44
permalink: docs/code-splitting.html
5+
prev: accessibility.html
56
---
67

78
## Bundling {#bundling}

content/docs/context.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
id: context
33
title: Context
44
permalink: docs/context.html
5+
prev: reconciliation.html
6+
next: fragments.html
57
---
68

79
Context provides a way to pass data through the component tree without having to pass props down manually at every level.

content/docs/error-boundaries.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
id: error-boundaries
33
title: Error Boundaries
44
permalink: docs/error-boundaries.html
5+
prev: portals.html
6+
next: web-components.html
57
---
68

79
In the past, JavaScript errors inside components used to corrupt React’s internal state and cause it to [emit](https://github.com/facebook/react/issues/4026) [cryptic](https://github.com/facebook/react/issues/6895) [errors](https://github.com/facebook/react/issues/8579) on next renders. These errors were always caused by an earlier error in the application code, but React did not provide a way to handle them gracefully in components, and could not recover from them.

content/docs/fragments.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
id: fragments
33
title: Fragments
44
permalink: docs/fragments.html
5+
prev: context.html
6+
next: portals.html
57
---
68

79
A common pattern in React is for a component to return multiple elements. Fragments let you group a list of children without adding extra nodes to the DOM.

content/docs/higher-order-components.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
id: higher-order-components
33
title: Higher-Order Components
44
permalink: docs/higher-order-components.html
5+
prev: web-components.html
6+
next: render-props.html
57
---
68

79
A higher-order component (HOC) is an advanced technique in React for reusing component logic. HOCs are not part of the React API, per se. They are a pattern that emerges from React's compositional nature.

content/docs/integrating-with-other-libraries.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
id: integrating-with-other-libraries
33
title: Integrating with Other Libraries
44
permalink: docs/integrating-with-other-libraries.html
5+
prev: render-props.html
6+
next: accessibility.html
57
---
68

79
React can be used in any web application. It can be embedded in other applications and, with a little care, other applications can be embedded in React. This guide will examine some of the more common use cases, focusing on integration with [jQuery](https://jquery.com/) and [Backbone](https://backbonejs.org/), but the same ideas can be applied to integrating components with any existing code.

content/docs/jsx-in-depth.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
id: jsx-in-depth
33
title: JSX In Depth
44
permalink: docs/jsx-in-depth.html
5+
next: typechecking-with-proptypes.html
56
redirect_from:
67
- "docs/jsx-spread.html"
78
- "docs/jsx-gotchas.html"

content/docs/optimizing-performance.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
id: optimizing-performance
33
title: Optimizing Performance
44
permalink: docs/optimizing-performance.html
5+
prev: uncontrolled-components.html
6+
next: react-without-es6.html
57
redirect_from:
68
- "docs/advanced-performance.html"
79
---

content/docs/portals.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
id: portals
33
title: Portals
44
permalink: docs/portals.html
5+
prev: fragments.html
6+
next: error-boundaries.html
57
---
68

79
Portals provide a first-class way to render children into a DOM node that exists outside the DOM hierarchy of the parent component.

0 commit comments

Comments
 (0)