Created
January 12, 2020 09:50
-
-
Save emmabostian/d5ec869cdd3468a27d845d239dd2e6e8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import { animated } from "react-spring"; | |
import "./modal.css"; | |
const Modal = ({ style, closeModal }) => ( | |
<animated.div style={style} className="modal"> | |
<h3 className="modal-title">Modal title</h3> | |
<p className="modal-content">Here is some random text.</p> | |
<button className="modal-close-button" onClick={closeModal}> | |
Close | |
</button> | |
</animated.div> | |
); | |
export default Modal; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment