# @react-g/core ## API ### Container Container include `Canvas` and `Group`. ### Shape Shape include `Text`, `Circle`, `Ellipse`, `Image`, `Line`, `Marker`, `Path`, `Polygon` and `Polyline`. ## Example ### Basic usage ```tsx import React, { useState, useEffect, useRef } from 'react'; import { Canvas, Group, Rect, Text, Circle, Ellipse, Image, Line, Marker, Path, Polygon, Polyline, } from 'react-g-canvas'; import { IShape } from '@antv/g-canvas'; const App: React.FC = () => { return ( { return [ ['M', x - r, y], ['L', x + r, y], ]; }} stroke="green" /> ); }; export default App; ``` ### Use with ref Like react-dom, you can use `ref` to access the object in [@antv/g](https://github.com/antvis/g).