Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

受控与非受控组件如何抉择?.md #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions questions/受控与非受控组件如何抉择?.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!-- {name: 'config', type: 'scene'} -->
### 发生问题的场景

<!--
说明:
在开发一个编辑器的时候,页面的组件都做成受控组件了,可是随着组件的增多,页面的性能变得越来越差了,之前一直认为受控组件是最好的,现在对此出现了怀疑?
-->

### 需要解决的问题

<!--
说明:
什么样的组件适合做受控组件,什么样的组件适合进行非受控开发?

回答:
1、受控组件与非受控的优缺点是什么?他们的临界点是什么?
2、为什么受控组件多了会导致页面卡顿呢?
-->