Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created June 26, 2020 12:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save velotiotech/5d8261f85aead37a5ff49e4c0ab837d6 to your computer and use it in GitHub Desktop.
Save velotiotech/5d8261f85aead37a5ff49e4c0ab837d6 to your computer and use it in GitHub Desktop.
import React from 'react'
const buttonStyle = {
padding: '10px 20px'
};
const Button = (props) => {
return (
<button
className="btn btn-default"
style={buttonStyle}
onClick={props.handleClick}>{props.label}</button>
)
}
Button.defaultProps = {
onClick: () => {},
label: ''
};
export default Button;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment