return ( <> <Table data={data} /> <button onClick={() => setShowChart(true)}>Show Chart</button> {showChart && <Chart />} </> ); }