tradingview / charting-library-tutorial

This tutorial explains step by step how to connect your data to the Charting Library
MIT License
435 stars 317 forks source link

How can Implement the react component like Function component? #61

Open mcjeikk opened 2 years ago

mcjeikk commented 2 years ago

Hello, I tried to adapt the example in react JavaScript tutorial from class component to function component, but when I try to render the component it says that container doesn't exist, I already created the div with ID. Anyone has the example of this component in function component? Thanks

Ahmad-Ghorbani commented 2 years ago

Hi @mcjeikk, I have implemented the tutorial in react using functional componets. you can find it here: https://github.com/Ahmad-Ghorbani/trading-view-react.