【发布时间】:2017-07-25 06:16:02
【问题描述】:
在 ES6 中反应 js 如何将我的组件与 firebase 数据库链接
【问题讨论】:
-
你在使用 Redux 吗?
标签: reactjs firebase-realtime-database
在 ES6 中反应 js 如何将我的组件与 firebase 数据库链接
【问题讨论】:
标签: reactjs firebase-realtime-database
另外,请参阅以下由 Stephen Grider 撰写的关于此主题的 Rally Coding 视频:Combining Redux and Firebase。他解释了如何在不使用 reactfire 的情况下将 Redux 与 Firebase 一起使用,作为替代设置。
【讨论】:
您可以使用 re-base - https://github.com/tylermcginnis/re-base(简单的方法)
要么
(困难的方法)按照https://firebase.google.com/docs/database/web/read-and-write 将组件状态中的每个项目绑定到 snapshot.val()
我一开始是从 re-base 开始的,现在想弄清楚如何在没有它的情况下做到这一点。
【讨论】: