export const jsx = `() => { const [timesClicked, setTimesClicked] = React.useState(0); function onButtonClick(): void { if (timesClicked === 0) { alert("isn't that nice?"); } setTimesClicked(prev => prev + 1); } return (
Online Playground Prototype with actual components
Can't see the code editor? Click on the button on the left panel and select the{" "} "Change Addons Orientation"
Button has been clicked {timesClicked} times
); }`; export const css = `.container { display: flex; flex-direction: column; gap: var(--spacing-medium); } .action-button { align-self: flex-start; }`; export default { jsx, css };