import { useEffect } from "react"; import { useState } from "react"; import ReactDom from "react-dom"; import Cal from "./src/index"; function App() { const [loaded, setLoaded] = useState(false); useEffect(() => { // Simulate state change causing config object to change, causing rerender of Cal setTimeout(setLoaded.bind(true), 1000); }, []); return ( <>
Cal
component below me