Personal-site/components/Button.js
2020-06-14 11:06:49 +02:00

16 lines
322 B
JavaScript

import React from "react";
import PropTypes from "prop-types";
import styles from "./modules/Button.module.css";
export default function Example(props) {
return (
<button className={styles.example} {...props}>
{props.label}
</button>
);
}
Example.propTypes = {
label: PropTypes.string.isRequired,
};