mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
9d60d38abe
* Add 'Test Utils' docs back to main navigation
**why make this change?:**
We accidentally removed this - still supporting the use of Test Utilities, so we should have them in the docs.
**test plan:**
Manually tested the website - will insert a screenshot.
**issue:**
https://github.com/facebook/react/issues/9651
* Move test-utils docs to reference section
**what is the change?:**
Moved from 'advanced guides' to 'reference'
**why make this change?:**
It makes more sense as a reference
**test plan:**
Visual inspection (flarnie may add a screenshot)
**issue:**
* Add back the shallow renderer docs and remove outdated docs
**what is the change?:**
- Remove outdated 'shallow renderer' docs on 'test utils' page, and point to the updated 'shallow renderer' docs.
- Re-add a link to the updated 'shallow renderer' docs on the main navigation.
**why make this change?:**
This was already approved in https://github.com/facebook/react/pull/9331 which was then cherry-picked to https://github.com/facebook/react/pull/9359/commits and landed on master.
I'm not sure why some of these changes didn't persist. For now just adding back the changes we need.
**test plan:**
Manually inspected website - will insert screenshots.
**issue:**
* Further improvements to 'shallow rendering' and 'test utils' docs
Thanks @gaearon for the improvements!
**what is the change?:**
- Remove <hr/> from end of 'shallow rendering' docs
- 'documents' -> 'documentation'
- Move 'shallow rendering' redirection section to top of 'test utils' docs
- Add intro sentence about testing to 'shallow rendering' docs
**why make this change?:**
Documentation helps people learn.
**test plan:**
Visual inspection
(cherry picked from commit 114b9c5500)
74 lines
2.0 KiB
YAML
74 lines
2.0 KiB
YAML
- title: Quick Start
|
|
items:
|
|
- id: installation
|
|
title: Installation
|
|
- id: hello-world
|
|
title: Hello World
|
|
- id: introducing-jsx
|
|
title: Introducing JSX
|
|
- id: rendering-elements
|
|
title: Rendering Elements
|
|
- id: components-and-props
|
|
title: Components and Props
|
|
- id: state-and-lifecycle
|
|
title: State and Lifecycle
|
|
- id: handling-events
|
|
title: Handling Events
|
|
- id: conditional-rendering
|
|
title: Conditional Rendering
|
|
- id: lists-and-keys
|
|
title: Lists and Keys
|
|
- id: forms
|
|
title: Forms
|
|
- id: lifting-state-up
|
|
title: Lifting State Up
|
|
- id: composition-vs-inheritance
|
|
title: Composition vs Inheritance
|
|
- id: thinking-in-react
|
|
title: Thinking In React
|
|
- title: Advanced Guides
|
|
items:
|
|
- id: jsx-in-depth
|
|
title: JSX In Depth
|
|
- id: typechecking-with-proptypes
|
|
title: Typechecking With PropTypes
|
|
- id: refs-and-the-dom
|
|
title: Refs and the DOM
|
|
- id: uncontrolled-components
|
|
title: Uncontrolled Components
|
|
- id: optimizing-performance
|
|
title: Optimizing Performance
|
|
- id: react-without-es6
|
|
title: React Without ES6
|
|
- id: react-without-jsx
|
|
title: React Without JSX
|
|
- id: reconciliation
|
|
title: Reconciliation
|
|
- id: context
|
|
title: Context
|
|
- id: web-components
|
|
title: Web Components
|
|
- id: higher-order-components
|
|
title: Higher-Order Components
|
|
- id: integrating-with-other-libraries
|
|
title: Integrating with Other Libraries
|
|
- title: Reference
|
|
items:
|
|
- id: react-api
|
|
title: React
|
|
subitems:
|
|
- id: react-component
|
|
title: React.Component
|
|
- id: react-dom
|
|
title: ReactDOM
|
|
- id: react-dom-server
|
|
title: ReactDOMServer
|
|
- id: dom-elements
|
|
title: DOM Elements
|
|
- id: events
|
|
title: SyntheticEvent
|
|
- id: test-utils
|
|
title: Test Utilities
|
|
- id: shallow-renderer
|
|
title: Shallow Renderer
|