React Native Flashcards

1
Q

Virtual DOM, setState(), reconciliation

A

setState() ->
merge the object passed to setState() into the current state of the component.
reconciliation tries to update the UI as efficiently as possible, by constructing a new tree of React elements,, which is diff’ed against the previous tree to only change the differences on the UI.

“virtual dom” is just the rendering to native platform views, not a web DOM.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

DOM

A

Document Object Model

How well did you know this?
1
Not at all
2
3
4
5
Perfectly