-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
181 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
const rehypePrism = require('@mapbox/rehype-prism'); | ||
const rehypeSlug = require('rehype-slug'); | ||
|
||
const emoji = require('remark-emoji'); | ||
const toc = require('remark-toc'); | ||
|
||
const withCSS = require('@zeit/next-css'); | ||
const withMDX = require('@zeit/next-mdx')({ | ||
options: { | ||
hastPlugins: [rehypePrism], | ||
hastPlugins: [rehypePrism, rehypeSlug], | ||
mdPlugins: [toc, emoji], | ||
}, | ||
extension: /\.(md|mdx)$/, | ||
}); | ||
const withCSS = require('@zeit/next-css'); | ||
|
||
module.exports = withCSS(withMDX()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
import Example from '../components/md/Example'; | ||
|
||
# Arrays | ||
|
||
<Example reactnative> | ||
|
||
```js | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
import Example from '../components/md/Example'; | ||
|
||
# Combining props and state | ||
|
||
<Example reactnative> | ||
|
||
```js | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
import Example from '../components/md/Example'; | ||
|
||
# Fetching data | ||
|
||
<Example reactnative> | ||
|
||
```js | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
import Example from '../components/md/Example'; | ||
|
||
# Hello world | ||
|
||
<Example reactnative> | ||
|
||
```js | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
import Example from '../components/md/Example'; | ||
|
||
# Hide status bar | ||
|
||
<Example reactnative> | ||
|
||
```js | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
import HelloWorld from './hello-world.md'; | ||
import Fetch from './fetch.md'; | ||
import JSON from './json.md'; | ||
import StatefulComponent from './stateful-component.md'; | ||
import PureComponent from './pure-component.md'; | ||
import Arrays from './arrays.md'; | ||
import HideStatusbar from './hide-statusbar.md'; | ||
import CombiningPropsAndState from './combining-props-and-state.md'; | ||
import RequiredAndDefaultProps from './required-and-default-props.md'; | ||
|
||
<div className="toc-container"> | ||
|
||
## Table of contents | ||
|
||
<!-- | ||
Put empty heading because remark-toc replaces content until the first heading of the same level, | ||
so it removes closing div tag | ||
--> | ||
|
||
## | ||
|
||
</div> | ||
|
||
## Hello World | ||
|
||
<HelloWorld /> | ||
|
||
## Pure Component | ||
|
||
<PureComponent /> | ||
|
||
## Required and default props | ||
|
||
<RequiredAndDefaultProps /> | ||
|
||
## Stateful component | ||
|
||
<StatefulComponent /> | ||
|
||
## Combining props and state | ||
|
||
<CombiningPropsAndState /> | ||
|
||
## Hide status bar | ||
|
||
<HideStatusbar /> | ||
|
||
## Arrays | ||
|
||
<Arrays /> | ||
|
||
## Fetch | ||
|
||
<Fetch /> | ||
|
||
## JSON | ||
|
||
<JSON /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
import Example from '../components/md/Example'; | ||
|
||
# JSON | ||
|
||
<Example reactnative> | ||
|
||
```js | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
import Example from '../components/md/Example'; | ||
|
||
# Pure Component | ||
|
||
<Example reactnative> | ||
|
||
```js | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
import Example from '../components/md/Example'; | ||
|
||
# Required and default props | ||
|
||
<Example reactnative> | ||
|
||
```js | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
import Example from '../components/md/Example'; | ||
|
||
# Stateful component | ||
|
||
<Example reactnative> | ||
|
||
```js | ||
|
Oops, something went wrong.