如何在jsfiddle上运行react-data-grid示例? [英] How do I run react-data-grid examples on jsfiddle?

查看:79
本文介绍了如何在jsfiddle上运行react-data-grid示例?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正试图在他们的页面有一个玩转它"链接,可带您进入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 :

  1. 从外部资源标签中删除react-with-addons.jsreact-dom.js.
  2. 添加 react.min.js 并在外部资源中 react-dom.min.js
  3. 在脚本中使用替换 jsfiddle-integration-babel.js href ="https://reactjs.org/js/jsfiddle-integration-babel.js" rel ="nofollow noreferrer"> this .
  1. remove react-with-addons.js and react-dom.js from external resources tab.
  2. add react.min.js and react-dom.min.js in external resources.
  3. replace jsfiddle-integration-babel.js in script with this.

尝试 fork .它不会更新表中的内容,表的状态与页面中的状态相同.

Try this fork. It doesn't update contents in table, which is the same state as in page.

这篇关于如何在jsfiddle上运行react-data-grid示例?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆