简体   繁体   English

如何在我的仪表板应用程序中使用其他人的反应组件?

[英]How to use other people's react components in my dash app?

I would like to include a 5-star user editable rating in my dash app, similar to what's asked in this thread which leads to this github page where someone seem to have built it.我想在我的仪表板应用程序中包含一个 5 星用户可编辑评级,类似于在这个线程中询问的内容,它导致这个github 页面似乎有人已经构建了它。

However, I am not sure how to leverage the work that person has done.但是,我不确定如何利用该人所做的工作。 Documentation on official website focuses on how to build such components.官方网站上的文档侧重于如何构建此类组件。 Many blogs like this one also seem to give you tutorials on how to create such components.许多像这样的博客似乎也为您提供了有关如何创建此类组件的教程。

What are the steps one should follow to leverage other people's react components into a dash app?其他人的反应组件用于仪表板应用程序应遵循哪些步骤? There is a plethora of those components outthere (good list here ) so I assume there is an easy way to use them in my apps, just not sure how.那里有很多这些组件(这里有很好的列表),所以我认为有一种简单的方法可以在我的应用程序中使用它们,只是不确定如何。

PS: apologies if I am just confused by the lenghty instructions. PS:如果我只是对冗长的说明感到困惑,请道歉。 I am very familiar with dash and python, not at all with react and javascript...我对dash和python非常熟悉,对react和javascript一点也不熟悉……

I ended up asking on the Plotly community forum.我最终在 Plotly 社区论坛上提问。 See solution provided here: https://community.plotly.com/t/how-to-use-other-peoples-react-components-in-my-dash-app/65627/2请参阅此处提供的解决方案: https ://community.plotly.com/t/how-to-use-other-peoples-react-components-in-my-dash-app/65627/2

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM