react-tradingview-widget
React组件,用于呈现 。
安装
yarn add react-tradingview-widget或npm install --save react-tradingview-widget
用法
基本例子
import TradingViewWidget from 'react-tradingview-widget' ;
const App = ( ) => (
< TradingViewWidget xss=removed>
) ;
所有给定的道具都传递给小部件配置。 请参阅以获取TradingView Advanced实时图表API。
进阶范例
import TradingViewWidget , { Themes } from 'react-tradingview-widget' ;
const App = ( ) => (
< TradingViewWidget
symbol = "NASDAQ:AAPL"
theme = { Themes . DARK }
lo
1