Skip to content

Instantly share code, notes, and snippets.

@rodoabad
Last active February 2, 2019 03:41
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 rodoabad/d652bb7bd16a0973692357d812dc378d to your computer and use it in GitHub Desktop.
Save rodoabad/d652bb7bd16a0973692357d812dc378d to your computer and use it in GitHub Desktop.
import * as React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import {myComponent} from './MyComponent.scss';
export const MyComponent = ({className, greeting, ...otherProps}) => (
<section
{...otherProps}
className={classnames(className, myComponent)}
>
{greeting}
</section>
);
MyComponent.propTypes = {
className: PropTypes.string.isRequired,
greeting: PropTypes.string.isRequired
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment