CSE 134B Lecture Notes - Lecture 9: Html Attribute
Document Summary
Isomorphic rendering - renders all on the client side, or server side. Unidirectional flows (flux) - data flow in a single direction using centralized dispatcher. Controversies: html should be a projection of app state, not a source of truth. Your app is a function of props and state. Dom automatically reflects current state of the data: js and html belong in the same file. React: js and html are completely intertwined: unidirectional flow. Unidirectional flow makes your app easier to work with (easier to debug) Simple paths to update data stores: inline styles can be good. You have maybe thousands of lines of styling in our css file. One ui change would trigger a model change. React - html in js (literally the first block of html, and that"s it) Compare original layout and change what"s only needed. Otherwise, you have to blindly update the entire dom. This entire section is where you handle the navigation between pages.