Skip to content

oscarferrandiz-zz/react-hamburgers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>
    );
  }
}

About

React component for Jonathan Suh's hamburguers

Resources

Stars

Watchers

Forks

Packages

No packages published