Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在接力赛中,
RootContainer 接受 2 个名为“renderFetched”和“Component”的道具。
他们的描述听起来很相似。两者之间究竟有什么区别?
“renderFetched”是一个将数据传递给“组件”的回调
当满足所有数据要求时,调用 renderFetched 来渲染视图。此回调应在渲染时将数据传播到提供的 Container 中。 参考。
我想这个函数的目的是在将数据传递给组件之前对数据进行一些转换。