Skip to content

Instantly share code, notes, and snippets.

@jorgeortega
Created February 21, 2018 09:23
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 jorgeortega/bbc4533abe02e5e5d3a1fda96281fcb3 to your computer and use it in GitHub Desktop.
Save jorgeortega/bbc4533abe02e5e5d3a1fda96281fcb3 to your computer and use it in GitHub Desktop.
React Simple Stateless Component
import React from 'react'
import { string } from 'prop-types'
import './_SimpleModal.css'
export function SimpleModal ({ className }) {
return (
<div className="SimpleModal__Container">
Modal
</div>
)
}
SimpleModal.propTypes = {
className: string,
modalMessage: string
}
SimpleModal.defaultProps = { modalMessage: '' }
export default SimpleModal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment