examples/react-ts-webpack4/src/emoji-button.js
import React from 'react';
import PropTypes from 'prop-types';
export const EmojiButton = ({ label, ...props }) => (
<button type="button" {...props}>
⚠️ {label}
</button>
);
EmojiButton.propTypes = {
/**
* A label to show on the button
*/
label: PropTypes.string,
};
EmojiButton.defaultProps = {
label: 'Hello',
};