Antanas A.05/23/2019, 2:15 PM
gildor05/23/2019, 2:17 PM
Antanas A.05/23/2019, 2:23 PM
Unlike ReactJS, a Binding.scala @dom method is NOT a regular function. It is a template that describes the relationship between data source and the DOM. When part of the data source changes, Binding.scala knows about the exact corresponding partial DOM affected by the change, thus only re-evaluating that part of the @dom method to reflect the change in the DOM.
karelpeeters05/23/2019, 3:47 PM
Leland Richardson [G]05/23/2019, 4:49 PM
Chuck Jazdzewski [G]05/23/2019, 4:53 PM
function is transform function from its parameters to a mutable tree. In Compose the tree represents the UI of an application. The tree is responsible for tracking when it is modified as a result of composition to track when and where the screen should be updated.
Antanas A.05/23/2019, 5:09 PM
Ryan Mentley05/24/2019, 3:28 AM