16 lines
322 B
JavaScript
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,
|
|
};
|