h() missing from README.md example?
See original GitHub issueThe README.md example says to use
import { h, render } from 'preact';
render((
<div id="foo">
<span>Hello, world!</span>
<button onClick={ e => alert("hi!") }>Click Me</button>
</div>
), document.body);
but this makes h
an unused import… should that be render(h(....))
?
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
h() missing from README.md example? · Issue #521 - GitHub
The README.md example says to use import { h, render } from 'preact'; render(( Hello, world! alert("hi!") }>Click Me ), document.body); ...
Read more >README.md file missing on github - Stack Overflow
Today I noticed that the README file is missing. I checked my commits and couldn't find anything related to README there.
Read more >master · examples / Excel 2007 The Missing Manual · GitLab
README.md ... Excel 2007: The Missing Manual, by Matthew MacDonald ... The following applies to example files from material published by ...
Read more >Basic Syntax - Markdown Guide
Heading Best Practices. Markdown applications don't agree on how to handle a missing space between the number signs ( # ) and the...
Read more >7217f03fbf9a14dff84acd717703...
... sebastian Keep macro SIZEOF_VOID_P out of expat_config.h(.in) for ... 2021-05-22 sebastian README.md: Make CMake config mode example ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
no, the generated code contains h
will be transpiled to
More on jsx (
h
replacesReact.createElement
, you could also usepreact.h
of course)Thanks, I’ll definitely give that a read!
But, as someone who is super comfortable with JSX (I’ve written several longreads about react with jsx back when we were on React 0.12) and despite that had never heard of hyperscript. Tech stack bubbles are weird =)