Skip to content

Commit b333ac8

Browse files
author
dddssw
committed
react
1 parent 2ffc720 commit b333ac8

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

frame/react/start.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,3 +250,19 @@ any的类型安全替代物,操作前需要进行断言或者基于控制流
250250
用于函数永远不会有返回值或到达其执行路径末端
251251
:::
252252

253+
254+
## lazy
255+
会进行代码分割,结合subpense做占位
256+
```js
257+
const MyComponent = React.lazy(()=>import("./MyComponent"))
258+
259+
function App(){
260+
return <MyComponent />
261+
}
262+
```
263+
264+
## startTransition
265+
266+
267+
## react native 原理
268+
架构包括 js线程 与 native线程,他们之间通信是通过桥接实现的。对于样式是一个称为shadow的线程,会把计算的结果发送到原生ui线程

0 commit comments

Comments
 (0)