A talk on the React.js library, covering the two key principles of react: reusable components and statelessness in your UI. Also covers some internals of the virtual DOM.
10. Composable, Reusable Components
โ Rethinking the way we build UIs on the web
โ Build components, not templates
โ Use React components to create cohesive building blocks and separate your
concerns
โ Reduce coupling and increase cohesion
16. Building UIs is hard because there is so much state.
Re-render, donโt mutate.
โ Data displayed is guaranteed to be up-to-date
โ No two-way data-binding complexity
โ No explicit DOM manipulations (components are declarative.)
Stateless UI
17.
18.
19. Virtual DOM
Re-render? But isnโt DOM manipulation slow?
React knows to only update the changed parts.
Virtual DOM: A lightweight implementation of the DOM
20. โ What React is
โ Components, not templates
โ Re-render, not mutate
โ Virtual DOM
Summary