Skip to content

Instantly share code, notes, and snippets.

@emmabostian
Created January 12, 2020 09:50
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save emmabostian/dff42c16b72caea286e252afe5fb98db 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 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