Editing a rich data structure in React.js

后端 未结 3 1618
轮回少年
轮回少年 2021-01-30 04:03

I\'m trying to create a simple grid-based editor for a data structure and I\'m having a couple conceptual problems with React.js. Their documentation is not very helpful on this

3条回答
  •  故里飘歌
    2021-01-30 04:36

    Another way to share data between sibling components when a parent component doesn't make sense is to use events between components. For example, you can use Backbone.Events, Node.js Emitter ported to the browser or any similar lib. You can even use Bacon.js if you prefer reactive streams. There's a great and simple example of combine Bacon.js and React.js here : http://joshbassett.info/2014/reactive-uis-with-react-and-bacon/

提交回复
热议问题