import { useState, useEffect, useMemo, useRef } from 'react'; import { getGeneratedData, complexScales } from '../data'; import { Gantt } from '../../src/'; import { Button } from '@svar-ui/react-core'; import './GanttPerformance.css'; function GanttPerformance(props) { const { skinSettings } = props; const count = 1000; const years = 3; const data = useMemo(() => getGeneratedData('', count, years), []); const [start, setStart] = useState(null); const outAreaRef = useRef(null); useEffect(() => { if (start && outAreaRef.current) { outAreaRef.current.innerHTML = new Date() - start; } }, [start]); return (