@ktno/react-hamburgers

1.1.2 • Public • Published

react-hamburgers

React component for Jonathan Suh's hamburguers (https://jonsuh.com/hamburgers/)

  • Install this package with:
npm i -S react-hamburgers
import React from 'react';
import Hamburger from 'react-hamburgers';

export default class MyComponent extends React.Component {

  constructor(props) {
    super(props);
    this.state = { active: false };
  }

  render() {
    return (
      <div>
        <Hamburger
          active={this.state.active}
          type="slider"
          onClick={() => this.setState({ active: !this.state.active })}
        >
      </div>
    );
  }
}

/@ktno/react-hamburgers/

    Package Sidebar

    Install

    npm i @ktno/react-hamburgers

    Weekly Downloads

    0

    Version

    1.1.2

    License

    MIT

    Unpacked Size

    5.08 kB

    Total Files

    5

    Last publish

    Collaborators

    • ktno