|
|
|
@ -6,15 +6,15 @@ export const getCounterHtml = (req: Request, key: string) => { |
|
|
|
|
return ( |
|
|
|
|
<> |
|
|
|
|
<form method="post" is="progressive-form"> |
|
|
|
|
<button type="submit" name={key} value={`${counter - 1}`} is="reactive-button" track={key} delta="-1"> |
|
|
|
|
<button type="submit" name={key} value={`${counter - 1}`} is="reactive-button" data-track={key} data-delta="-1"> |
|
|
|
|
- |
|
|
|
|
</button>{" "} |
|
|
|
|
<button type="submit" name={key} value={`${counter + 1}`} is="reactive-button" track={key} delta="+1"> |
|
|
|
|
<button type="submit" name={key} value={`${counter + 1}`} is="reactive-button" data-track={key} data-delta="+1"> |
|
|
|
|
+ |
|
|
|
|
</button> |
|
|
|
|
</form>{" "} |
|
|
|
|
Value of "{key}":{" "} |
|
|
|
|
<span class="counter" is="reactive-span" track={key}> |
|
|
|
|
<span class="counter" is="reactive-span" data-track={key}> |
|
|
|
|
{counter} |
|
|
|
|
</span> |
|
|
|
|
</> |
|
|
|
|