CSE 134B Lecture Notes - Lecture 9: Html Attribute

54 views3 pages

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.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents