What is a React Component?

Building on our simple React app, Aurooba demonstrates a component and sets up state to track variables. While discussing return statements, Brian cringes about JSX and mixing HTML with JavaScript. They also discuss how a function can return more than one variable in modern JavaScript.

A full transcript of the episode is available on the website. Watch the video podcast on YouTube and subscribe to our channel and newsletter to hear about episodes (and more) first!
  • (00:00) - Introduction
  • (01:10) - The Return in React Components
  • (07:39) - Setting up State with @wordpress/element
  • (10:25) - Destructuring and Getting Multiple Values from a Function
  • (14:05) - Calling Event Functions in JSX
  • (16:06) - Frontend Recap and Next Steps

Creators and Guests

Aurooba Ahmed
Host
Aurooba Ahmed
(she/her) Developer building bespoke #WordPress solutions, tools, and blocks. My name is pronounced "oo-ROO-ba" — Default to kindness, folks.
Brian Coords
Host
Brian Coords
WordPress developer and writer blah blah
What is a React Component?
Broadcast by