- Unset previous props.
Iterate over lastStyle
and copy keys into styleUpdates
with empty string as a value in order to "unset" them when they are missing in the next style version.
- Find modified props.
Iterate over new style
and copy modified keys only into styleUpdates
.
- Render style value
Ensure valid property name and value, add default unit. Set each prop to the node.style
object.
When is createMarkupForStyles used, first time rendering?