What is State?
Data that a component keeps track of and can change over time
Why It Matters
State is how your app remembers things like what's in a shopping cart or whether a menu is open
Real-World Example
When you add an item to a cart, state tracks the cart contents and updates the display
“Understanding terms like State matters because it helps you have better conversations with developers and make smarter decisions about your software. You do not need to be technical. You just need to know enough to ask the right questions.”
Related Terms
Component
A reusable building block of a user interface that can be combined to create complex pages
Props
Data passed from a parent component to a child component to customise its appearance or behaviour
React
A popular tool for building user interfaces, created by Facebook, that makes complex UIs easier to manage
Learn More at buildDay Melbourne
Want to understand these concepts hands-on? Join our one-day workshop and build a real web application from scratch.