How do I run react-data-grid examples on jsfiddle?

落花浮王杯 提交于 2019-12-11 16:13:12

问题


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?


回答1:


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. 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.

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



来源:https://stackoverflow.com/questions/46923987/how-do-i-run-react-data-grid-examples-on-jsfiddle

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!