react-hooks-g2 Usage import UseG2 from 'react-hooks-g2' ReactDOM.render(<UseG2 callback={chart => chart.line().position(....)} data={[...]} />)