UNPKG

wykrestest

Version:

Candlestick Chart made with Konva, React and Jotai

12 lines (11 loc) 514 B
import { jsx as _jsx } from "react/jsx-runtime"; // import ReactDOM from 'react-dom' import { createRoot } from 'react-dom/client'; import './index.css'; import { Chart } from './Chart'; import React from 'react'; export const initialData = [{ high: 0, low: 0, open: 0, close: 0, api_date: '' }]; const container = document.getElementById('root'); //@ts-ignore const root = createRoot(container); root.render(_jsx(React.StrictMode, { children: _jsx(Chart, { chartData: initialData, height: 500, width: 800 }) }));