Skip to content

Instantly share code, notes, and snippets.

@zaguiini
Last active May 22, 2018 23:57
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 zaguiini/246a050e0029eed4fd4d084954b17c28 to your computer and use it in GitHub Desktop.
Save zaguiini/246a050e0029eed4fd4d084954b17c28 to your computer and use it in GitHub Desktop.
import React from 'react'
import classNames from 'classnames'
import styles from './styles.module.scss'
export default ({ negative = false, name, surname }) => (
<div
className={classNames(
styles['name-container'],
negative && styles['name-negative'],
)}
>
<p className={styles['name-content']}>Hello, {name}.</p>
<p>Or should I refer to you by {surname}?</p>
</div>
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment