Skip to content

Instantly share code, notes, and snippets.

View emmabostian's full-sized avatar
💻
They see me codin', they hatin'

Emma Bostian emmabostian

💻
They see me codin', they hatin'
View GitHub Profile
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
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