16

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.

1
  • 7
    For people who don't like React, the whole thing is dirty... ;) Commented Feb 8, 2016 at 6:08

2 Answers 2

12

Dirty 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.

Sign up to request clarification or add additional context in comments.

1 Comment

To be clear, "dirty-checking" isn't specific to React. It's just a term for one way of synchronizing application state to the DOM/UI. React uses something different: reconciliation.
6

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.