Skip to content

Instantly share code, notes, and snippets.

@emmabostian emmabostian/Modal.js
Created Jan 12, 2020

What would you like to do?
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}>
export default Modal;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.