mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 20:23:08 +00:00
Add in-page TOC
Also reduce spacing between ul/li tags
This commit is contained in:
@@ -6,6 +6,16 @@ permalink: docs/context.html
|
||||
|
||||
Context provides a way to pass data through the component tree without having to pass props down manually at every level.
|
||||
|
||||
- [API](#api)
|
||||
- [React.createContext](#reactcreatecontext)
|
||||
- [Provider](#provider)
|
||||
- [Consumer](#consumer)
|
||||
- [Examples](#examples)
|
||||
- [Static Context](#static-context)
|
||||
- [Dynamic Context](#dynamic-context)
|
||||
- [Motivation](#motivation)
|
||||
- [Legacy API](#legacy-api)
|
||||
|
||||
## API
|
||||
|
||||
### `React.createContext`
|
||||
|
||||
@@ -336,7 +336,7 @@ const sharedStyles = {
|
||||
},
|
||||
|
||||
'& li': {
|
||||
marginTop: 20,
|
||||
marginTop: 10,
|
||||
},
|
||||
|
||||
'& li.button-newapp': {
|
||||
@@ -345,6 +345,7 @@ const sharedStyles = {
|
||||
|
||||
'& ol, & ul': {
|
||||
marginLeft: 20,
|
||||
marginTop: 10,
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user