Mastering Components
- PropsProps allow components to receive data. They form part of a component's public interface and enable one-way data flow from parent to child.
- StoreThe store option defines a component's internal reactive state. Unlike props, which flow from parent to child, store values can be freely modified within the component.
- ActionsActions expose a component's public methods. They're like buttons on your component that other components or code can trigger. Just as a TV remote has buttons for changing channels or volume, your component can have actions for functionality like "increment", "reset", and "submit".
- EventsEvents let components communicate with their parents. Just like clicking a button triggers a click event, your components can trigger custom events that parents can listen for.