You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you get a component class from a dynamic source, then it might be unnecessary to create a factory that you immediately invoke. Instead you can just create your element inline:
47
+
如果从动态来源取得组件类,那么就不需要创建立即调用的工厂函数。你可以改用内联的方式创建你的元素:
48
48
49
49
```javascript
50
50
var React =require('react');
@@ -54,6 +54,6 @@ function render(MyComponent) {
54
54
}
55
55
```
56
56
57
-
## In Depth {#in-depth}
57
+
## 深入 {#in-depth}
58
58
59
-
[Read more about WHY we're making this change.](https://gist.github.com/sebmarkbage/d7bce729f38730399d28)
0 commit comments