ReactJS - Prevent initial animation of modal with react hooks
问题 I built simple Modal component which will slide from bottom when opened. Animations are working fine when Modal trigger button clicked and backdrop clicked. But i am seeing slide-down animation at initial render of page. How can i prevent initial animation ?? I am specifically looking how to solve with react hooks. Modal.js import React, { useRef, useEffect } from 'react'; import { createPortal } from 'react-dom'; import './Modal.css'; const Modal = ({ isOpen, onClose, children }) => { const