Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dfrankland committed Mar 26, 2016
1 parent b9b0c5f commit 350990b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@ import amphtml from 'react-amphtml';
var amphtml = require('react-amphtml').default;
```

### amphtml(*component-name*, *callback*)
### `amphtml(*component-name*, *callback*)`
Returns a React component of the requested `*component-name*`.

#### *component-name*
#### `*component-name*`
Pass the name of the amphtml component without the `amp-` prefix. Throws exception if it doesn't exist.
Ex: `facebook`, `font`, `list`, `img`

#### *callback*
#### `*callback*`
Function that will be called with an argument passed containing an object of the amphtml component name and script URL.
Will only be called if the component is an extension, not a builtin.
Ex:
Expand Down

0 comments on commit 350990b

Please sign in to comment.