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.
我想在我自己定义的 Layout 组件中渲染嵌套的 React 组件,但我不知道如何递归调用 reduce/map 以便根据 Layout 结构正确渲染子级中的子级作为屏幕截图。
有人可以建议吗?
源代码