如何在jsfiddle上运行react-data-grid示例? [英] How do I run react-data-grid examples on jsfiddle?
问题描述
我正试图在他们的页面有一个玩转它"链接,可带您进入jsfiddle.由于某种原因,我无法在jsfiddle上看到输出. 对此有什么解决方案?
I am trying to get a hang of react-data-grid and the examples on their page have a "play around with it" link that takes you to jsfiddle. For some reason, I am unable to see the output on jsfiddle. What would be a solution for this?
推荐答案
在jsfiddle使用的最新react版本中,不推荐使用某些依赖项.检查他们的页面所访问的资源并进行比较使用小提琴,您可以通过在jsfiddle中执行以下操作来破解解决方案:
Some of the dependencies are deprecated in the latest react version used by jsfiddle. On inspecting the resources accessed by their page and comparing it with fiddle, you can hack a solution by doing the following in jsfiddle :
- 从外部资源标签中删除
react-with-addons.js
和react-dom.js
. - 添加
react.min.js
并在外部资源中react-dom.min.js
- 在脚本中使用替换
jsfiddle-integration-babel.js
href ="https://reactjs.org/js/jsfiddle-integration-babel.js" rel ="nofollow noreferrer">this
.
- remove
react-with-addons.js
andreact-dom.js
from external resources tab. - add
react.min.js
andreact-dom.min.js
in external resources. - replace
jsfiddle-integration-babel.js
in script withthis
.
尝试 fork
.它不会更新表中的内容,表的状态与页面中的状态相同.
Try this fork
. It doesn't update contents in table, which is the same state as in page.
这篇关于如何在jsfiddle上运行react-data-grid示例?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!