Super overview of React!
Key nuggest:
- React takes a functional programming approach on view rendering.
- Angular and many others hold on to your data as well and tend to conform more to an MVC type patter, React allows you to write your views as functions (with some caveats)
- Basically react lets you define "given the state of my data, what does my view look like right now?" as functions. Views are therefore very testable (ie call my component with 5 users with these names, I should see 5 cards with names displayed in header).
- React has two major ways to define "Components"
- functions (the pure functional way to write views)
function UserCard({user}) {