Commit 8bd9d76b authored by mleko's avatar mleko Committed by GitHub

Merge pull request #1 from slipperypenguin/patch-1

Added More Info to README
parents a5e92306 539aceab
......@@ -23,6 +23,11 @@ npm start
React Hamburger Button has only two required props: `open` and `onClick`.
#### include
```js
import { HamburgerButton } from 'react-hamburger-button';
```
#### onClick
Note: This prop is passed a `function`. This function will be invoked when the component is `clicked`. The function should responsible for updating the state that is passed to `open`. The function passed to `onClick` could look something like the following:
......@@ -38,7 +43,7 @@ handleClick() {
An example use of React Hamburger Menu looks like:
```js
<HamburgerMenu
<HamburgerButton
open={this.state.open}
onClick={this.handleClick.bind(this)}
width={18}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment