Week 7

Intro to React pt. 2

At this point, we should have some idea of what React code should look like. We know what JSX is, and we’ve introduced the concept of the virtual DOM, which is how React handles updates using props and state. We covered a tonne of new syntax last week, and once again dived into completely unknown waters with yet another new technology.

This week’s lecture covers hooks and the Context API, which were introduced in a fairly recent upgrade to React. Hooks make our lives easier by essentially letting us convert functional components into class-based components, and the Context API is an example of an application store, which lets us share variables between components in a complex hierarchy of files. We’ll also be covering routing, which lets us define separate pages that users can navigate to.