0.0.752 • Published 5 years ago

nvest-trading-view v0.0.752

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

nvest-trading-view

Made with create-react-library

NPM JavaScript Style Guide

Install

npm install --save nvest-trading-view

Usage

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 App

License

MIT © shailesh

0.0.752

5 years ago

0.0.751

5 years ago

0.0.75

5 years ago

0.0.74

5 years ago

0.0.73

5 years ago

0.0.72

5 years ago

0.0.71

5 years ago

0.0.70

5 years ago

0.0.69

5 years ago

0.0.68

5 years ago

0.0.67

5 years ago

0.0.66

5 years ago

0.0.62

5 years ago

0.0.63

5 years ago

0.0.64

5 years ago

0.0.65

5 years ago

0.0.57

5 years ago

0.0.61

5 years ago

0.0.6

5 years ago

0.0.55

5 years ago

0.0.56

5 years ago

0.0.54

5 years ago

0.0.53

5 years ago

0.0.52

5 years ago

0.0.51

5 years ago

0.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago