Add in-page TOC

Also reduce spacing between ul/li tags
This commit is contained in:
Alex Krolick
2018-03-20 18:15:23 -07:00
parent 0780f7252e
commit a5022da882
2 changed files with 12 additions and 1 deletions

View File

@@ -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`

View File

@@ -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,
},
},