admin管理员组文章数量:1208155
I am trying to understand React.js and often come across a term "Dirty" like dirty checker/checking, dirty data ,dirty model
I followed this question but could not make out what actually the term Dirty convey & why we call it dirty.
I am trying to understand React.js and often come across a term "Dirty" like dirty checker/checking, dirty data ,dirty model
I followed this question but could not make out what actually the term Dirty convey & why we call it dirty.
Share Improve this question edited May 23, 2017 at 11:54 CommunityBot 11 silver badge asked Feb 8, 2016 at 4:53 brkbrk 50.3k10 gold badges58 silver badges82 bronze badges 1- 7 For people who don't like React, the whole thing is dirty... ;) – nnnnnn Commented Feb 8, 2016 at 6:08
2 Answers
Reset to default 12Dirty data - the data, that have been changed recently and DOM haven't been re-rendered according to this changes yet. So dirty checking is diff between next state and current state.
Dirty is just the state of the form which tells that this form has been touched by user. This does not means that form is invalid.
本文标签: javascriptWhat is quotDirtyquot in ReactjsStack Overflow
版权声明:本文标题:javascript - What is "Dirty" in React.js? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1738689847a2107037.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论