alibaba / rax

🐰 Rax is a progressive framework for building universal application. https://rax.js.org
Other
8k stars 627 forks source link

[BUG] 集成 antd 提示 getPrefixCls is not a function,是因为Context的问题吗? #2286

Closed yuchonghua closed 2 years ago

yuchonghua commented 2 years ago

image

希望解决 raxjs集成antd,但在解决前更期待得知为什么提示此报错: 1、 raxjs 的 Context 兼容 React 的规范问题 2、本身 rax的bug无法通过更换方法使用 Context,如果是这样自身组件使用是否会同样有改问题,是否有解决方案

SoloJiang commented 2 years ago

rax 兼容 React Context 规范在规划中

yuchonghua commented 2 years ago

期待有更多rax的文档 ,而非rax-app的文档

SoloJiang commented 2 years ago

我理解你需要的是 Rax Core 的规划

yuchonghua commented 2 years ago

难道是 SSR 下 依据 #1380 没有返回 Context 吗