
Sign up to save your podcasts
Or


Chapter 14 of React by Ear — From JavaScript to Interactive Apps.
Keep a filter control and workout list in agreement. Move shared state into a common parent, pass values down, and use named callbacks so children can request changes.
Sources and attribution
Sharing State Between Components — https://react.dev/learn/sharing-state-between-components
Adapted from React documentation by its authors under CC BY 4.0: https://creativecommons.org/licenses/by/4.0/
License notice: https://github.com/reactjs/react.dev/blob/main/LICENSE-DOCS.md
Independent AI-generated narration with adapted explanations and original workout examples. Not affiliated with or endorsed by React, Meta, or the source authors.
Chapter 13 of React by Ear — From JavaScript to Interactive Apps.
Choose the smallest useful state for a workout interface. Derive counts and filtered lists during rendering, track selection by ID, and avoid contradictory or duplicated values.
Sources and attribution
Choosing the State Structure — https://react.dev/learn/choosing-the-state-structure
Adapted from React documentation by its authors under CC BY 4.0: https://creativecommons.org/licenses/by/4.0/
License notice: https://github.com/reactjs/react.dev/blob/main/LICENSE-DOCS.md
Independent AI-generated narration with adapted explanations and original workout examples. Not affiliated with or endorsed by React, Meta, or the source authors.
Chapter 12 of React by Ear — From JavaScript to Interactive Apps.
Follow a keystroke from a labeled input into state and back to the screen. Explore controlled fields, checkboxes, form submission, validation states, and deliberate conversion of numeric input.
Sources and attribution
Reacting to Input with State — https://react.dev/learn/reacting-to-input-with-state
— https://react.dev/reference/react-dom/components/input
Adapted from React documentation by its authors under CC BY 4.0: https://creativecommons.org/licenses/by/4.0/
License notice: https://github.com/reactjs/react.dev/blob/main/LICENSE-DOCS.md
Independent AI-generated narration with adapted explanations and original workout examples. Not affiliated with or endorsed by React, Meta, or the source authors.
Chapter 11 of React by Ear — From JavaScript to Interactive Apps.
Update workout objects and arrays without mutating earlier state. Explore shallow copies, nested references, map, filter, and copying before sorting or reversing.
Sources and attribution
Updating Objects in State — https://react.dev/learn/updating-objects-in-state
Updating Arrays in State — https://react.dev/learn/updating-arrays-in-state
Adapted from React documentation by its authors under CC BY 4.0: https://creativecommons.org/licenses/by/4.0/
License notice: https://github.com/reactjs/react.dev/blob/main/LICENSE-DOCS.md
Independent AI-generated narration with adapted explanations and original workout examples. Not affiliated with or endorsed by React, Meta, or the source authors.
Chapter 10 of React by Ear — From JavaScript to Interactive Apps.
Walk through React’s update queue one step at a time. Compare repeated replacements with named updater functions, then predict the results of mixed updates to a completed-sets counter.
Sources and attribution
Queueing a Series of State Updates — https://react.dev/learn/queueing-a-series-of-state-updates
Adapted from React documentation by its authors under CC BY 4.0: https://creativecommons.org/licenses/by/4.0/
License notice: https://github.com/reactjs/react.dev/blob/main/LICENSE-DOCS.md
Independent AI-generated narration with adapted explanations and original workout examples. Not affiliated with or endorsed by React, Meta, or the source authors.
Chapter 09 of React by Ear — From JavaScript to Interactive Apps.
Trace which render owns an event handler and the values it remembers. Use a repetitions counter and delayed message to understand state snapshots, closures, and why a setter does not rewrite the current value.
Sources and attribution
State as a Snapshot — https://react.dev/learn/state-as-a-snapshot
Adapted from React documentation by its authors under CC BY 4.0: https://creativecommons.org/licenses/by/4.0/
License notice: https://github.com/reactjs/react.dev/blob/main/LICENSE-DOCS.md
Independent AI-generated narration with adapted explanations and original workout examples. Not affiliated with or endorsed by React, Meta, or the source authors.
Chapter 08 of React by Ear — From JavaScript to Interactive Apps.
Follow a state update through triggering, rendering, committing, and browser paint. Learn why rendering can leave the DOM unchanged and how pure components keep a workout summary predictable.
Sources and attribution
Render and Commit — https://react.dev/learn/render-and-commit
Keeping Components Pure — https://react.dev/learn/keeping-components-pure
Adapted from React documentation by its authors under CC BY 4.0: https://creativecommons.org/licenses/by/4.0/
License notice: https://github.com/reactjs/react.dev/blob/main/LICENSE-DOCS.md
Independent AI-generated narration with adapted explanations and original workout examples. Not affiliated with or endorsed by React, Meta, or the source authors.
Chapter 07 of React by Ear — From JavaScript to Interactive Apps.
Give a workout counter memory. Learn how useState preserves values between renders, why separate component instances have independent state, and where ordinary Hooks may be called.
Sources and attribution
State: A Component's Memory — https://react.dev/learn/state-a-components-memory
Rules of Hooks — https://react.dev/reference/rules/rules-of-hooks
Adapted from React documentation by its authors under CC BY 4.0: https://creativecommons.org/licenses/by/4.0/
License notice: https://github.com/reactjs/react.dev/blob/main/LICENSE-DOCS.md
Independent AI-generated narration with adapted explanations and original workout examples. Not affiliated with or endorsed by React, Meta, or the source authors.
Chapter 06 of React by Ear — From JavaScript to Interactive Apps.
Follow a click from a workout button to a named event handler. Explore passing functions instead of calling them during rendering, callback props, event propagation, and preventing a form’s default behavior.
Before listening: Components, props, functions, and conditional UI.
Practice: Pass a named callback into an ExerciseCard and trace what runs when its button is clicked.
Sources and attribution
Responding to Events — https://react.dev/learn/responding-to-events
Adapted from React documentation by its authors under CC BY 4.0: https://creativecommons.org/licenses/by/4.0/
License notice: https://github.com/reactjs/react.dev/blob/main/LICENSE-DOCS.md
Independent AI-generated narration with adapted explanations and original workout examples. Not affiliated with or endorsed by React, Meta, or the source authors.
Chapter 05 of React by Ear — From JavaScript to Interactive Apps.
Turn a collection of workout data into the right rows on screen. Explore conditional rendering, filtering and mapping arrays, and stable keys that identify items among their siblings.
Before listening: JSX, props, and JavaScript array methods.
Practice: Render a filtered exercise list with stable IDs and a completion indicator.
Sources and attribution
Conditional Rendering — https://react.dev/learn/conditional-rendering
Rendering Lists — https://react.dev/learn/rendering-lists
Adapted from React documentation by its authors under CC BY 4.0: https://creativecommons.org/licenses/by/4.0/
License notice: https://github.com/reactjs/react.dev/blob/main/LICENSE-DOCS.md
Independent AI-generated narration with adapted explanations and original workout examples. Not affiliated with or endorsed by React, Meta, or the source authors.
From the publisher's feed