Component argumnets
Component Arguments with Examples
1. Props
export default function TextComponent({ props }) {
props.title = "Initial Title";
return `
<h1>${props.title}</h1>
<p>${props.description}</p>
`;
}2. State
export default function StateExample({ state }) {
state.setDefault({ counter: 0 });
setTimeout(() => {
state.update("counter", state.get("counter") + 1);
}, 1000);
return `
<p>Counter: ${state.get("counter")}</p>
`;
}3. Dispatch
4. Update
5. HTTP
6. Request
7. View
8. Context
9. Services
Last updated