Skip to content

Instantly share code, notes, and snippets.

@emmabostian
Created January 12, 2020 09:50
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 emmabostian/d5ec869cdd3468a27d845d239dd2e6e8 to your computer and use it in GitHub Desktop.
Save emmabostian/d5ec869cdd3468a27d845d239dd2e6e8 to your computer and use it in GitHub Desktop.
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