0.0.63 • Published 6 years ago
nvest-trading-view v0.0.63
nvest-trading-view
Made with create-react-library
Install
npm install --save nvest-trading-viewUsage
import React from 'react'
import { TradingViewChart } from 'nvest-trading-view'
import 'nvest-trading-view/dist/index.css'
const App = () => {
const size = useRef();
const [heightWidth, setHeightWidth] = useState({x:0, y:0})
useEffect(()=>{
!size.current.offsetWidth?console.log():setHeightWidth({x: size.current?.offsetWidth, y: size.current?.offsetHeight })
},[size.current?.offsetWidth])
return (
<div style = {{height: '100vh', width: '100vw'}} ref= {size} className="App">
{heightWidth.x === 0?<></>:<TradingViewChart height={heightWidth.y} width= {heightWidth.x}/>}
</div>
);
}
export default AppLicense
MIT © shailesh
0.0.752
6 years ago
0.0.751
6 years ago
0.0.75
6 years ago
0.0.74
6 years ago
0.0.73
6 years ago
0.0.72
6 years ago
0.0.71
6 years ago
0.0.70
6 years ago
0.0.69
6 years ago
0.0.68
6 years ago
0.0.67
6 years ago
0.0.66
6 years ago
0.0.62
6 years ago
0.0.63
6 years ago
0.0.64
6 years ago
0.0.65
6 years ago
0.0.57
6 years ago
0.0.61
6 years ago
0.0.6
6 years ago
0.0.55
6 years ago
0.0.56
6 years ago
0.0.54
6 years ago
0.0.53
6 years ago
0.0.52
6 years ago
0.0.51
6 years ago
0.0.5
6 years ago
1.0.4
6 years ago
1.0.3
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago