Docs: Homepage example of components is different from Components section, broken
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
- Issue type
- Documentation
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- javascript
- Domain
- documentation
Research direction
The issue points to the Hyperscript homepage and Components section; compare their component examples and reproduce the homepage snippet in the playground. Update the homepage example to match the documented component usage, then verify that it works in the playground and locally.
Written by the indexing model from the issue text.
Description
On the Homepage for Hyperscript, there is an example of using a component structured as:
<template component="click-counter"
_="init set ^count to 0">
<button _="on click increment ^count">+</button>
<span>Clicks: ${^count}</span>
</template>
<click-counter></click-counter>
<click-counter></click-counter>
which doesn't seem to work when I try it in the playground or my own file locally. It also differs from the examples within the Components section:
<script type="text/hyperscript-template" component="click-counter" _="set ^count to 0">
<button _="on click increment ^count">+</button>
<span class="label">Clicks: ${^count}</span>
</script>
<click-counter></click-counter>
<br>
<click-counter></click-counter>
- Dominant language
- JavaScript
- Stars
- 3.8k
- Forks
- 171
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from bigskysoftware/_hyperscript
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
bigskysoftware/_hyperscript#688 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
bigskysoftware/_hyperscript#676 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
bigskysoftware/_hyperscript#695 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 62/100
bigskysoftware/_hyperscript#687 ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
bigskysoftware/_hyperscript#685 ·
All issues in bigskysoftware/_hyperscript
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·